Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
thecoducer committed Sep 4, 2019
1 parent dc69802 commit 5ae3726
Show file tree
Hide file tree
Showing 7 changed files with 221 additions and 7 deletions.
212 changes: 212 additions & 0 deletions .gitignore
@@ -0,0 +1,212 @@

# Created by https://www.gitignore.io/api/python,django,virtualenv
# Edit at https://www.gitignore.io/?templates=python,django,virtualenv

*.env
*env
env
/env
env/

### Django ###
*.log
*.pot
*.pyc
__pycache__/
local_settings.py
db.sqlite3
media

# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
# in your Git repository. Update and uncomment the following line accordingly.
# <django-project-name>/staticfiles/

### Django.Python Stack ###
# Byte-compiled / optimized / DLL files
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo

# Django stuff:
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

### Python ###
# Byte-compiled / optimized / DLL files

# C extensions

# Distribution / packaging

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.

# Installer logs

# Unit test / coverage reports

# Translations

# Django stuff:

# Flask stuff:

# Scrapy stuff:

# Sphinx documentation

# PyBuilder

# Jupyter Notebook

# IPython

# pyenv

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.

# celery beat schedule file

# SageMath parsed files

# Environments

# Spyder project settings

# Rope project settings

# mkdocs documentation

# mypy

# Pyre type checker

### VirtualEnv ###
# Virtualenv
# http://iamzed.com/2009/05/07/a-primer-on-virtualenv/
[Bb]in
[Ii]nclude
[Ll]ib
[Ll]ib64
[Ll]ocal
[Ss]cripts
pyvenv.cfg
pip-selfcheck.json

# End of https://www.gitignore.io/api/python,django,virtualenv
Binary file modified db.sqlite3
Binary file not shown.
6 changes: 3 additions & 3 deletions diary_app/templates/diary_app/signin.html
Expand Up @@ -33,9 +33,9 @@ <h2>Daily Bytes</h2>

<p class="hint-text">Sign in with</p>
<div class="social-btn text-center">
<a href="{% url 'social:begin' 'github' %}" class="btn btn-primary btn-lg" title="GitHub"><i class="fa fa-github"></i></a>
<a href="{% url 'social:begin' 'twitter' %}" class="btn btn-info btn-lg" title="Twitter"><i class="fa fa-twitter"></i></a>
<a href="{% url 'social:begin' 'google-oauth2' %}" class="btn btn-danger btn-lg" title="Google"><i class="fa fa-google"></i></a>
<a href="{% url 'social:begin' 'github' %}?next={{ request.path }}" class="btn btn-primary btn-lg" title="GitHub"><i class="fa fa-github"></i></a>
<a href="{% url 'social:begin' 'twitter' %}?next={{ request.path }}" class="btn btn-info btn-lg" title="Twitter"><i class="fa fa-twitter"></i></a>
<a href="{% url 'social:begin' 'google-oauth2' %}?next={{ request.path }}" class="btn btn-danger btn-lg" title="Google"><i class="fa fa-google"></i></a>
</div>

<div class="or-seperator"><b>or</b></div>
Expand Down
6 changes: 3 additions & 3 deletions diary_app/templates/users/signup.html
Expand Up @@ -35,9 +35,9 @@
<h2>Daily Bytes</h2>
<p class="hint-text">Sign up with</p>
<div class="social-btn text-center">
<a href="{% url 'social:begin' 'github' %}" class="btn btn-primary btn-lg" title="GitHub"><i class="fa fa-github"></i></a>
<a href="{% url 'social:begin' 'twitter' %}" class="btn btn-info btn-lg" title="Twitter"><i class="fa fa-twitter"></i></a>
<a href="{% url 'social:begin' 'google-oauth2' %}" class="btn btn-danger btn-lg" title="Google"><i class="fa fa-google"></i></a>
<a href="{% url 'social:begin' 'github' %}?next={{ request.path }}" class="btn btn-primary btn-lg" title="GitHub"><i class="fa fa-github"></i></a>
<a href="{% url 'social:begin' 'twitter' %}?next={{ request.path }}" class="btn btn-info btn-lg" title="Twitter"><i class="fa fa-twitter"></i></a>
<a href="{% url 'social:begin' 'google-oauth2' %}?next={{ request.path }}" class="btn btn-danger btn-lg" title="Google"><i class="fa fa-google"></i></a>
</div>
<div class="or-seperator"><b>or</b></div>

Expand Down
Binary file modified diary_proj/__pycache__/settings.cpython-36.pyc
Binary file not shown.
3 changes: 2 additions & 1 deletion diary_proj/settings.py
Expand Up @@ -12,6 +12,8 @@

import os
import django_heroku
from decouple import config


# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Expand Down Expand Up @@ -183,5 +185,4 @@
'social_core.pipeline.social_auth.associate_by_email',
)


django_heroku.settings(locals())
1 change: 1 addition & 0 deletions requirements.txt
Expand Up @@ -11,6 +11,7 @@ idna==2.8
oauthlib==3.1.0
psycopg2==2.8.3
PyJWT==1.7.1
python-decouple==3.1
python3-openid==3.1.0
pytz==2019.2
requests==2.22.0
Expand Down

0 comments on commit 5ae3726

Please sign in to comment.