I tried both methods but I am unable to understand what's wrong, I'm using django 1.11.7, it was working a few months ago. I only have one python version installed.
I get this system message:
C:\WINDOWS\system32>django-admin.py startproject wisdompets
Unable to create process using 'c:\program files\python36\python.exe
"C:\Program Files\Python36\Scripts\django-admin.py" startprojects
wisdompets'
C:\WINDOWS\system32>django-admin startproject test_project
Fatal error in launcher: Unable to create process using '"'
Did you activate your virtual environment where Django was installed?
Maybe you had installed Django in a virtual environment and your system might not have Django.
It should be :
django-admin startproject projectname
For doubts refer here: https://docs.djangoproject.com/en/1.11/intro/tutorial01/
This was not the most elegant walkaround but I managed to fix it by uninstalling both python and django then reinstalling them.
Related
I have created demo django project, now I cant run the server. I'm getting "ImportError: Couldn't import Django" I dont know what I'm missing.
You must install Django. The error is about this. Maybe you installed django on a virtual environment and you have deactivated it?
I am starting out with Django on my Mac, I installed Django2 and installed PyCharm
But when I try to run command from terminal to create a new project on desktop:
django-admin.py startproject name or
django-admin startproject name
then I get "command not found"
Pycharm shows my env at /Users/admin/PycharmProjects/untitled/venv
Please help
Thank you
I am not familiar with the environment on the Mac, but i think the setup are almost the same. It seems that you have not activated your environment.
I use the virtual env on an ubuntu and i have to activate the environmet before i can start creating projects and apps. I hope that helps.
https://www.jetbrains.com/help/pycharm-edu/creating-virtual-environment.html
I think this may help. You can specify your python environment in pycharm.
i need some help.
I searched in internet but i didn't find any response. I'n new in python nad django :) that causes that i'm here.
Maybe i start at the beginning, i have some project django on heroku hosting, and i have repository on git. I check and i don't have ftp connection to heroku :/ and i have only repository on git. In this repository is requirement.txt file but there no information about version of modules.
I want to prepare enviroment on my ubuntu, i downloaded my existing django project and i started server by command
python manage.py server
I was informed by python that i need to install some of module, and library of python etc. Everything went ok until apperad info
ImportError: No module named plugins
There is no name of plugins this showed just plugins. I installed some module like django-plugins ( i think that module have a folder i dist-package like djangoplugins ). It did not help :/, than i created new folder in dist-package ( in python library folder ) "plugins" and i copied content form djangoplugins . This did not help :/. again showed me "ImportError: No module named plugins". i don't have any idea , whats i need to install, i installed every plugins i found in internet and it didn't help.
Maybe you had this problem ? i know that django can be 1.6 version.]
=====================================
PROBLEM SOLVED
I have wrong version of django and django-cms.
So Cloud9 looks really cool, and you can create python files in it, but I can't figure out how to get it to run a Django project. I imported one from my github account into the IDE, but it says I need to install Django (a django.core import error) so I need to help getting going. Any Ideas? Any skeleton projects on the web that I missed that will do this?
After some research and looking for an answer on different blogs and sites I finally found a solution:
Create a new workspace
Execute easy_install django to install Django
Create new Django project python ./../bin/django-admin.py startproject myproject
Start dev server python ./myproject/manage.py runserver $IP:$PORT
Access http://projectname.username.c9.io
VoilĂ !!!
I hope this helps
Just write commands in shell as it is:
sudo pip install -r requirements.txt (you should have there django)
than
python manage.py runserver $IP:$PORT
you will have app on https://projectname-username.c9.io
You may also have to add the proper path: <workspace_name>-<username>.c9users.io to the ALLOWED_HOSTS list in django_project/settings.py file, as suggested by the error message returned by django server. Tested on Django 2.0
In eclipse,when i create new project, i got an error like,
Error creating Django project
settings.py file not created
Stdout:
Stderr:
If i synchronize present project and runserver, iam getting Error: No module named filterspecs.But i haven't used filterspecs in my project. Already filterspecs.py installed in usr/local/lib/python2.7/dist-packages/django/contrib/admin.
Kindly advise to rectify the error.
You may be using django.contrib.admin.filterspecs to create custom filters for your admin pages, such as outlined here:
Custom Filter in Django Admin on Django 1.3 or below
Unfortunatelly, you will have to rewrite these using the new list_filter module functionality.
See the manual here:
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter
This happened to me as well, even though my code wasn't directly using any filterspecs.
Run python manage.py runserver --traceback to see exactly where the error is coming from.
This module was removed in Django 1.4, but other external modules you have listed in your settings.py might still be using it, so make sure you upgrade everything in your INSTALLED_APPS list. In my case, I was using an outdated version of FeinCMS, but after I upgraded it, the error went away.
Obviously, your system is lacking filterspecs module which is required by the project. Install it by typing sudo pip install filterspecs in the console (if you are on linux)