chaspy / ask-python

http://ask.chaspy.me
0 stars 0 forks source link

add login signup logout #20

Closed ariririri closed 5 years ago

ariririri commented 5 years ago

@chaspy I add login,signup Please review and merge. These can confirm the following.

chaspy commented 5 years ago

seems it is not working in staging environment. https://askpy-pr-20.herokuapp.com

I'll check papertrail

chaspy commented 5 years ago
Mar 17 07:40:50 askpy-pr-20 app/web.1:  Traceback (most recent call last): 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "manage.py", line 15, in <module> 
Mar 17 07:40:50 askpy-pr-20 app/web.1:      execute_from_command_line(sys.argv) 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line 
Mar 17 07:40:50 askpy-pr-20 app/web.1:      utility.execute() 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "/usr/local/lib/python3.7/site-packages/django/core/management/__init__.py", line 325, in execute 
Mar 17 07:40:50 askpy-pr-20 app/web.1:      settings.INSTALLED_APPS 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "/usr/local/lib/python3.7/site-packages/django/conf/__init__.py", line 57, in __getattr__ 
Mar 17 07:40:50 askpy-pr-20 app/web.1:      self._setup(name) 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "/usr/local/lib/python3.7/site-packages/django/conf/__init__.py", line 44, in _setup 
Mar 17 07:40:50 askpy-pr-20 app/web.1:      self._wrapped = Settings(settings_module) 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "/usr/local/lib/python3.7/site-packages/django/conf/__init__.py", line 107, in __init__ 
Mar 17 07:40:50 askpy-pr-20 app/web.1:      mod = importlib.import_module(self.SETTINGS_MODULE) 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module 
Mar 17 07:40:50 askpy-pr-20 app/web.1:      return _bootstrap._gcd_import(name[level:], package, level) 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "<frozen importlib._bootstrap>", line 1006, in _gcd_import 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "<frozen importlib._bootstrap>", line 983, in _find_and_load 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "<frozen importlib._bootstrap>", line 677, in _load_unlocked 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "<frozen importlib._bootstrap_external>", line 728, in exec_module 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "/code/config/settings.py", line 81, in <module> 
Mar 17 07:40:50 askpy-pr-20 app/web.1:      'ENGINE': os.environ['POSTGRES_ENGINE'], 
Mar 17 07:40:50 askpy-pr-20 app/web.1:    File "/usr/local/lib/python3.7/os.py", line 678, in __getitem__ 
Mar 17 07:40:50 askpy-pr-20 app/web.1:      raise KeyError(key) from None 
Mar 17 07:40:50 askpy-pr-20 app/web.1:  KeyError: 'POSTGRES_ENGINE' 
chaspy commented 5 years ago

needed environment variables for staging...

chaspy commented 5 years ago

added once...

Screenshot 2019-03-18 00 34 50
chaspy commented 5 years ago

I'll investigate the failure on staging, let's merge!