diff options
author | Sashi20 | 2020-02-20 12:58:59 +0530 |
---|---|---|
committer | Sashi20 | 2020-02-20 12:58:59 +0530 |
commit | 1fb3d381e832d5c5871c6cb2fd8b2c1ae3dbd029 (patch) | |
tree | 3a9829196102efdf509fe50b5458237966999ecf /manage.py | |
parent | 802bbc270363d1432cb28cd88d6c9003d8b99b6c (diff) | |
download | arduino_projects_website-1fb3d381e832d5c5871c6cb2fd8b2c1ae3dbd029.tar.gz arduino_projects_website-1fb3d381e832d5c5871c6cb2fd8b2c1ae3dbd029.tar.bz2 arduino_projects_website-1fb3d381e832d5c5871c6cb2fd8b2c1ae3dbd029.zip |
Add user registration, login and abstract submission interfaces
Diffstat (limited to 'manage.py')
-rwxr-xr-x | manage.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/manage.py b/manage.py new file mode 100755 index 0000000..76cce2f --- /dev/null +++ b/manage.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python +import os +import sys + +if __name__ == "__main__": + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "arduino_projects_website.settings") + try: + from django.core.management import execute_from_command_line + except ImportError: + # The above import may fail for some other reason. Ensure that the + # issue is really that Django is missing to avoid masking other + # exceptions on Python 2. + try: + import django + except ImportError: + raise ImportError( + "Couldn't import Django. Are you sure it's installed and " + "available on your PYTHONPATH environment variable? Did you " + "forget to activate a virtual environment?" + ) + raise + execute_from_command_line(sys.argv) |