olasitarska on master
Making post_detail.html more co… Merge pull request #362 from ve… (compare)
bmispelon on master
Provide alternative runserver c… Merge pull request #359 from Al… (compare)
bmispelon on master
fixing broken github link Merge pull request #358 from gs… (compare)
@choi-seung-min According to the official django homepage (https://docs.djangoproject.com/en/3.0/releases/3.0/), Django 3.0.2 should be compatible with python 3.6, though they recommend using 3.8. I'm not sure about what the error you get in Pycharm is about. If you're comfortable with using the command line/terminal, then maybe you could try creating and running a django project without PyCharm? I've had trouble with PyCharm sometimes (probably because I don't understand it well enough), things like interpreter and virtual environment settings that lead to unexpected behavior.
About the debug mode: Just turn debug mode on again (DEBUG = True) in settings.py. It's best to leave debug mode on unless the tutorial says otherwise. Debug mode is great during production, it's only if you would make a live site that other people are to visit that you'll have to make sure it's off.
If you want to keep all changes and combine them, run
git pull
first.
README.md
file. This change doesn't share any history with your local changes, so git pull
wouldn't work.
git push --force-with-lease -u origin master
Hi!
I can't run my app on pythonanywhere.com (local app runs and works fine)
Error log from pythonanywhere:
2020-01-21 15:59:42,342: Error running WSGI application
2020-01-21 15:59:42,355: NameError: name 'BASE_DIR' is not defined
2020-01-21 15:59:42,355: File "/var/www/sergeichukes_pythonanywhere_com_wsgi.py", line 15, in <module>
2020-01-21 15:59:42,355: application = get_wsgi_application()
2020-01-21 15:59:42,355:
2020-01-21 15:59:42,355: File "/home/sergeichukes/sergeichukes.pythonanywhere.com/myenv/Lib/site-packages/django/core/wsgi.py", line 12, in get_wsgi_application
2020-01-21 15:59:42,355: django.setup(set_prefix=False)
2020-01-21 15:59:42,356:
2020-01-21 15:59:42,356: File "/home/sergeichukes/sergeichukes.pythonanywhere.com/myenv/Lib/site-packages/django/__init__.py", line 19, in setup
2020-01-21 15:59:42,356: configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
2020-01-21 15:59:42,356:
2020-01-21 15:59:42,356: File "/home/sergeichukes/sergeichukes.pythonanywhere.com/myenv/Lib/site-packages/django/conf/__init__.py", line 79, in __getattr__
2020-01-21 15:59:42,356: self._setup(name)
2020-01-21 15:59:42,357:
2020-01-21 15:59:42,357: File "/home/sergeichukes/sergeichukes.pythonanywhere.com/myenv/Lib/site-packages/django/conf/__init__.py", line 66, in _setup
2020-01-21 15:59:42,357: self._wrapped = Settings(settings_module)
2020-01-21 15:59:42,357:
2020-01-21 15:59:42,357: File "/home/sergeichukes/sergeichukes.pythonanywhere.com/myenv/Lib/site-packages/django/conf/__init__.py", line 157, in __init__
2020-01-21 15:59:42,357: mod = importlib.import_module(self.SETTINGS_MODULE)
2020-01-21 15:59:42,358:
2020-01-21 15:59:42,358: File "/home/sergeichukes/sergeichukes.pythonanywhere.com/myenv/Lib/site-packages/isort/__init__.py", line 25, in <module>
2020-01-21 15:59:42,358: from . import settings # noqa: F401
2020-01-21 15:59:42,358:
2020-01-21 15:59:42,358: File "/home/sergeichukes/sergeichukes.pythonanywhere.com/myenv/Lib/site-packages/isort/settings.py", line 359, in <module>
2020-01-21 15:59:42,358: STATIC_ROOT = os.path.join(BASE_DIR, 'static')
2020-01-21 15:59:42,358: ***************************************************
2020-01-21 15:59:42,358: If you're seeing an import error and don't know why,
2020-01-21 15:59:42,359: we have a dedicated help page to help you debug:
2020-01-21 15:59:42,359: https://help.pythonanywhere.com/pages/DebuggingImportError/
2020-01-21 15:59:42,359: ***************************************************
And here's my mysite/settings.py
:
https://github.com/sergeichukes/first-blog/blob/master/mysite/settings.py