1👍
It sounds like when you upgraded, the PATH environment variable was modified. If that’s the case, here’s how you can fix it.
Why can I only start the project this way?
When the operating system sees the django-admin
command, it does not know what that means. It checks the PATH
variable (which holds a list of directories as a single string). The OS will then check each of these directories for a program named django-admin
. It appears that during the course of the upgrade the path variable was modified and now no longer includes C:\Python27\Scripts
.
Is there a way to permanently change it?
Yes. You’ll just need the add C:\Python27\Scripts
to your PATH
. This page explains how to update PATH
for Windows 8 (though at the top it also says it is applicable to Windows 10). Specifically:
Windows 8
1) Drag the Mouse pointer to the Right bottom corner of the screen
2) Click on the Search icon and type: Control Panel
3) Click on -> Control Panel -> System -> Advanced
4) Click on Environment Variables, under System Variables, find PATH, and click on it.
5) In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may
select to add a new variable and add PATH as the name and the location
of the class as the value.6) Close the window.
- Django 1.8 startup delay troubleshooting
- How to make only specific user getting a newsletter-mail (Django)
- Improperly Configured -success_url in Django