How To Find Django Version Of A Project? - python-3.x

I have a Django project forked from GitHub. But I don't know which version of Django is used in that project. How can I find the Django version of the project ? I haven't installed Django in my PC.

You can check Django(installed) version with
pip show django
or
pip3 show django
In your case, it is difficult to find Django version since it is not mentioned in any file/s such as requirements.txt
You can assume the Django version used for existing GitHub project by Latest commit on [Date] by looking at that date you can assume figure out which version was used.
Note: You can check the logfile (if it is available)

I found a solution on my own. In the top of the settings.py file, you can see an auto generated multiline comment like this
"""
Django settings for remedy_server project.
Generated by 'django-admin startproject' using Django 3.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
In that comment, the Django version of your project has been mentioned

Django version or any other package version
Open the terminal or command prompt
Type
pip show django

import django
print(django.get_version())
3.0.7

Related

How to change the kedro configuration environment in jupyter notebook?

I want to run a kedro pipeline in the base env using jupyter notebook. I do this the following way:
%reload_kedro --env=base
session.run(pipeline_name='dpfm1')
Doing this, the %reload_kedro command raises the following error:
RuntimeError: Could not find the project configuration file 'pyproject.toml' in --env=base. If you have created
your project with Kedro version <0.17.0, make sure to update your project template. See
https://github.com/kedro-org/kedro/blob/main/RELEASE.md#migration-guide-from-kedro-016-to-kedro-0170 for how to
migrate your Kedro project.
However, I have installed kedro version 0.18.2:
>>>!kedro --version
kedro, version 0.18.2
What's the matter here?
#ilja This is mentioned in the RELEASE.md if you have an old Kedro project, i.e. 0.16.x, there is no pypropject.toml file.
You may have Kedro 0.18.2 installed, but if it is an old project, there are some migration steps that you need to take, which are included in the RELEASE.md
If it is a new project, it's likely that you are not providing the right path argument, kedro need to find the pyproject.toml for certain metadata and determine where is the project root.
p.s. %reload_kedro path --env --extra_params is only supported since 0.18.3, previously it does not support any argument other than path, so you may to upgrade your Kedro version.

CKEditor5 Online Editor - How to configure a custom npm package for strapi

i use strapi and i want to change the default text editor with the ckeditor5 classic.
On the strapi website is a guide how to configure the default ckeditor5 classic for strapi.
Strapi Guide
But there are some important tools missing so I want to build my custom fork of the ckeditor5 classic package.
I started with the ckeditor5 online builder. Downloaded the build package and want to import it in the strapi project.
Online Builder
My problems starting here.
First of all, how I can use a downloaded package in a project instead of download it over npm/yarn?
Package Structure:
build
sample
src
Licsence
package.json
webpack.config
I saw that package has no main command in the package.json. So an import in a node.js file to this package doesn't work. Here is my question, is this package i build with the online generator intended for usage in a node project?
Look at the truth, I don't know very well, I'm not an expert on the subject yet ... I'm really new and I'm working with strapi, but as I see these plugins have an install command with NPM. Example:
enter image description here
Try to download the plugins by NPM or Yarn and then import them as they say in this post: Customizing CKEditor for Strapi gives "ckeditor-duplicated-modules" error

Meteor package breaks bootstrap

In my angular-meteor project, I opted for using meteor's bootstrap package nemo64:bootstrap, for it's easy customization of the original bootstrap settings. However, when installing another meteor package for easy html text editor, the fraywing:text-angular..
When installed, the text-angular package installs twbs:bootstrap, which is another package to handle bootstrap, and this breaks most of my bootstrap javascript functions, because of the double call all of them recieve (one from the nemo64 and another form the twbs)..
I figured I could just uninstall the twbs:bootstrap package via meteor remove twbs:bootstrap but the command fails due to the package haven't been installed, because it comes bundled with the fraywing:text-angular package.
Is there any way I can remove that dependecy from text-angular, as I'm using nemo64's bootstrap package.
Thanks in advance.
This is the package list from meteor:
accounts-password 1.1.4 Password support for accounts
angular 1.3.5* Everything you need to use AngularJS in your Meteor app
angular:angular-sanitize 1.5.0 AngularJS (official) release. For full solution: http://angular-meteor.com/
angularui:angular-ui-router 0.2.15 angular-ui-router (official): Flexible routing with nested views in AngularJS
check 1.1.0 Check whether a value matches a pattern
email 1.0.8 Send email messages
es5-shim 4.1.14 Shims and polyfills to improve ECMAScript 5 support
fortawesome:fontawesome 4.5.0 Font Awesome (official): 500+ scalable vector icons, customizable via CSS, Retina friendly
fraywing:text-angular 1.3.11 A radically powerful Text-Editor/Wysiwyg editor for Angular.js!
jquery 1.11.4 Manipulate the DOM using CSS selectors
less 2.5.1 Leaner CSS language
meteor-base 1.0.1 Packages that every Meteor app needs
mobile-experience 1.0.1 Packages for a great mobile user experience
mongo 1.1.3 Adaptor for using MongoDB and Minimongo over DDP
mquandalle:bower 1.5.2_1 Use Bower packages in your Meteor app
natestrauser:animate-css 3.4.0 Animate.css packaged for meteor
nemo64:bootstrap 3.3.5_2 Highly configurable bootstrap integration.
session 1.1.1 Session variable
standard-minifiers 1.0.2 Standard minifiers used with Meteor apps by default.
timmyg:wow 1.0.1 WOW css animations
tmeasday:publish-counts 0.7.3 Publish the count of a cursor, in real time
tracker 1.0.9 Dependency tracker to allow reactive callbacks
urigo:angular-blaze-template 0.3.0 Include Blaze templates in your angular-meteor application.
You can copy the package locally and modify it: create a packages folder in root folder, clone the fraywing package into it from github then modify its dependencies in package.js to use the nemo package instead of twbs.
Meteor will automatically use your local packages over the one from the repository, the list command should show a little star next to the fraywing package to indicate it has picked up the local one. This would however mean the package would not update to the latest version with meteor update...

mysite.wsgi file is missing after creating django project

I try to deploy nginx+uwsgi+django.
In .ini-file is required to set module=mysite.wsgi.
But in my project directory there is no any .wsgi-file.
Project created by
django-admin.py startproject xproj
Why it is possible?
in Django 1.4.0 and above wsgi.py exist under xproj->xproj folder .
Django provided wsgi.py t interact with web server .
Actually wsgi.py is the file you want. As you can see here.
You see in Python people often use the Python module syntax when talking about files. So for example if you are talking about your models[.]py in a module named "Users" you wouldn't say users/models[.]py you would say users.models. This is what the gunicorn docs are doing. The writer of the docs is talking about the file myproject/wsgi[.]py but is using the module syntax of myproject.wsgi.

Fsharp binding for monodevelop via add-in manager can't resolve dependencies

I need to run F# with monodeveloper on Arch Linux. (Please don't advice me to NOT use it, i have to use it as it is required by a university course). I tried to add Language Binding for F# as it is described in this link(downloaded zip file, extract it and tried to add from add-in manager):
https://code.google.com/p/wildart/wiki/FSharpBinding
It gives me the following errors:
The selected add-ins can not be installed because there are dependency conflicts.
The package 'Components v2.2' could not be found in any repository
The package 'Core v2.2' could not be found in any repository
The package 'Core.Gui v2.2' could not be found in any repository
The package 'Ide v2.2' could not be found in any repository
The package 'Projects v2.2' could not be found in any repository
The package 'Projects.Gui v2.2' could not be found in any repository
How can i solve this problem? I search on the internet and couldn't find a solution yet.
Second way, i tried to build and install from scratch as described in github:
https://github.com/fsharp/fsharpbinding/tree/master/monodevelop
I've downloaded fsharpbinding.zip, installed nuget(i don't know what else i should download, as it says "required nuget packages"), unzip the file, and call ./configure.sh under his folder. It fails because it can't find fsc in given paths:
which: no fsc in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
It successfully finds all other directories that it looks for. F# is already installed but i don't know how to find fsc to pass its path to configure.sh. What should i do?
just ran into this, and it seems to be this issue. fixed it by uninstalling monodevelop and installing monodevelop-latest from aur

Resources