heroku / django-heroku

[DEPRECATED] Do not use! See https://github.com/heroku/django-heroku/issues/56
BSD 3-Clause "New" or "Revised" License
459 stars 142 forks source link

SyntaxError in django_heroku #8

Closed Alababdiy closed 6 years ago

Alababdiy commented 6 years ago

on i try run server

Traceback (most recent call last): File "./manage.py", line 10, in execute_from_command_line(sys.argv) File "/home/dell/.local/lib/python2.7/site-packages/django/core/management/init.py", line 364, in execute_from_command_line utility.execute() File "/home/dell/.local/lib/python2.7/site-packages/django/core/management/init.py", line 308, in execute settings.INSTALLED_APPS File "/home/dell/.local/lib/python2.7/site-packages/django/conf/init.py", line 56, in getattr self._setup(name) File "/home/dell/.local/lib/python2.7/site-packages/django/conf/init.py", line 41, in _setup self._wrapped = Settings(settings_module) File "/home/dell/.local/lib/python2.7/site-packages/django/conf/init.py", line 110, in init mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module import(name) File "/home/dell/Workshop/ArNews/python-getting-started/gettingstarted/settings.py", line 14, in import django_heroku File "/usr/local/lib/python2.7/dist-packages/django_heroku/init.py", line 1, in from .core import File "/usr/local/lib/python2.7/dist-packages/django_heroku/core.py", line 45 def settings(config, , db_colors=False, databases=True, test_runner=True, staticfiles=True, allowed_hosts=True, logging=True, secret_key=True): ^ SyntaxError: invalid syntax

i use python ver : 2.7.14

edmorley commented 6 years ago

Hi!

From the project README:

Django 2.0 is targeted, but older versions of Django should be compatible. Only Python 3 is supported.

Alababdiy commented 6 years ago

OKAY ! Thx.

tlhcelik commented 5 years ago

pip3 install -r reqs.txt it's work 👍

OkamiMane commented 5 years ago

pip3 install -r reqs.txt it's work

I had to use pip3 install -r requirements.txt instead. Use whatever the file name in your directory is.