Skip to content

Commit

Permalink
initial commit after moving files to new folder locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Russell committed Mar 12, 2020
0 parents commit bb65b5b
Show file tree
Hide file tree
Showing 74 changed files with 17,573 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.env
__pycache__
db.sqlite3
/media
spotifyxx.py
.cache-thelukerussell
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "/Users/luke/.local/share/virtualenvs/movement-wYr_w4_l/bin/python"
}
22 changes: 22 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
django = "*"
gunicorn = "*"
whitenoise = "*"
pillow = "*"
djangorestframework = "*"
dj-database-url = "*"
psycopg2-binary = "*"
django-storages = "*"
boto3 = "*"
django-rest-auth = "*"
django-allauth = "*"

[requires]
python_version = "3.8"
285 changes: 285 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
release: python manage.py migrate
web: gunicorn conf.wsgi --log-file -
Empty file added accounts/__init__.py
Empty file.
7 changes: 7 additions & 0 deletions accounts/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.contrib import admin
from django.contrib.auth.admin import UserAdmin

from .models import User, UserProfile

admin.site.register(User, UserAdmin)
admin.site.register(UserProfile)
5 changes: 5 additions & 0 deletions accounts/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class AccountsConfig(AppConfig):
name = 'accounts'
16 changes: 16 additions & 0 deletions accounts/forms.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from django.forms.models import ModelForm
from .models import User, UserProfile

class CustomUserCreationForm(UserCreationForm):

class Meta:
model = User
fields = ('username', 'email',)

class CustomUserChangeForm(UserChangeForm):

class Meta:
model = User
fields = ('username', 'email',)
Loading

0 comments on commit bb65b5b

Please sign in to comment.