Skip to content

Commit b0f4d79

Browse files
author
Williano
committed
First Commit
0 parents  commit b0f4d79

File tree

400 files changed

+38128
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

400 files changed

+38128
-0
lines changed

.env.example

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
DEBUG=True
2+
SECRET_KEY=s3cr3tk3y
3+
DATABASE_URL=sqlite:////tmp/db.sqlite3
4+
ALLOWED_HOSTS=127.0.0.1

.gitignore

+187
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
2+
# Created by https://www.gitignore.io/api/pycharm,python,django
3+
4+
### Django ###
5+
*.log
6+
*.pot
7+
*.pyc
8+
__pycache__/
9+
local_settings.py
10+
db.sqlite3
11+
12+
13+
# If your build process includes running collectstatic, then you probably don't need or want to include staticfiles/
14+
# in your Git repository. Update and uncomment the following line accordingly.
15+
# <django-project-name>/staticfiles/
16+
17+
### PyCharm ###
18+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
19+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
20+
21+
# User-specific stuff:
22+
.idea/**/workspace.xml
23+
.idea/**/tasks.xml
24+
.idea/dictionaries
25+
26+
# Sensitive or high-churn files:
27+
.idea/**/dataSources/
28+
.idea/**/dataSources.ids
29+
.idea/**/dataSources.xml
30+
.idea/**/dataSources.local.xml
31+
.idea/**/sqlDataSources.xml
32+
.idea/**/dynamic.xml
33+
.idea/**/uiDesigner.xml
34+
35+
# Gradle:
36+
.idea/**/gradle.xml
37+
.idea/**/libraries
38+
39+
# CMake
40+
cmake-build-debug/
41+
42+
# Mongo Explorer plugin:
43+
.idea/**/mongoSettings.xml
44+
45+
## File-based project format:
46+
*.iws
47+
48+
## Plugin-specific files:
49+
50+
# IntelliJ
51+
/out/
52+
53+
# mpeltonen/sbt-idea plugin
54+
.idea_modules/
55+
56+
# JIRA plugin
57+
atlassian-ide-plugin.xml
58+
59+
# Cursive Clojure plugin
60+
.idea/replstate.xml
61+
62+
# Ruby plugin and RubyMine
63+
/.rakeTasks
64+
65+
# Crashlytics plugin (for Android Studio and IntelliJ)
66+
com_crashlytics_export_strings.xml
67+
crashlytics.properties
68+
crashlytics-build.properties
69+
fabric.properties
70+
71+
### PyCharm Patch ###
72+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
73+
74+
# *.iml
75+
# modules.xml
76+
# .idea/misc.xml
77+
# *.ipr
78+
79+
# Sonarlint plugin
80+
.idea/sonarlint
81+
82+
### Python ###
83+
# Byte-compiled / optimized / DLL files
84+
*.py[cod]
85+
*$py.class
86+
*.pyc
87+
*~
88+
__pycache__
89+
.DS_Store
90+
91+
92+
93+
# C extensions
94+
*.so
95+
96+
# Distribution / packaging
97+
.Python
98+
build/
99+
develop-eggs/
100+
dist/
101+
downloads/
102+
eggs/
103+
.eggs/
104+
lib/
105+
lib64/
106+
parts/
107+
sdist/
108+
var/
109+
wheels/
110+
*.egg-info/
111+
.installed.cfg
112+
*.egg
113+
114+
# PyInstaller
115+
# Usually these files are written by a python script from a template
116+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
117+
*.manifest
118+
*.spec
119+
120+
# Installer logs
121+
pip-log.txt
122+
pip-delete-this-directory.txt
123+
124+
# Unit test / coverage reports
125+
htmlcov/
126+
.tox/
127+
.coverage
128+
.coverage.*
129+
.cache
130+
nosetests.xml
131+
coverage.xml
132+
*.cover
133+
.hypothesis/
134+
135+
# Translations
136+
*.mo
137+
138+
# Django stuff:
139+
140+
# Flask stuff:
141+
instance/
142+
.webassets-cache
143+
144+
# Scrapy stuff:
145+
.scrapy
146+
147+
# Sphinx documentation
148+
docs/_build/
149+
150+
# PyBuilder
151+
target/
152+
153+
# Jupyter Notebook
154+
.ipynb_checkpoints
155+
156+
# pyenv
157+
.python-version
158+
159+
# celery beat schedule file
160+
celerybeat-schedule
161+
162+
# SageMath parsed files
163+
*.sage.py
164+
165+
# Environments
166+
.env
167+
.venv
168+
env/
169+
venv/
170+
ENV/
171+
env.bak/
172+
venv.bak/
173+
174+
# Spyder project settings
175+
.spyderproject
176+
.spyproject
177+
178+
# Rope project settings
179+
.ropeproject
180+
181+
# mkdocs documentation
182+
/site
183+
184+
# mypy
185+
.mypy_cache/
186+
187+
# End of https://www.gitignore.io/api/pycharm,python,django

PyLadiesGhana/__init__.py

Whitespace-only changes.

PyLadiesGhana/settings.py

+174
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
"""
2+
Django settings for PyLadiesGhana project.
3+
4+
Generated by 'django-admin startproject' using Django 2.0.2.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/2.0/topics/settings/
8+
9+
For the full list of settings and their values, see
10+
https://docs.djangoproject.com/en/2.0/ref/settings/
11+
"""
12+
13+
import os
14+
from unipath import Path
15+
import dj_database_url
16+
from decouple import config, Csv
17+
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
18+
19+
PROJECT_DIR = Path(__file__).parent
20+
21+
# Quick-start development settings - unsuitable for production
22+
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/
23+
24+
# SECURITY WARNING: keep the secret key used in production secret!
25+
SECRET_KEY = config('SECRET_KEY')
26+
27+
# SECURITY WARNING: don't run with debug turned on in production!
28+
DEBUG = config('DEBUG', default=False, cast=bool)
29+
30+
ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv())
31+
32+
33+
# Application definition
34+
35+
INSTALLED_APPS = [
36+
'jet.dashboard',
37+
'jet',
38+
'django.contrib.admin',
39+
'django.contrib.auth',
40+
'django.contrib.contenttypes',
41+
'django.contrib.sessions',
42+
'django.contrib.messages',
43+
'django.contrib.staticfiles',
44+
45+
# my_apps
46+
'home',
47+
'about',
48+
'coc',
49+
'locations',
50+
'resources',
51+
'sponsors',
52+
'contact',
53+
]
54+
55+
MIDDLEWARE = [
56+
'django.middleware.security.SecurityMiddleware',
57+
'django.contrib.sessions.middleware.SessionMiddleware',
58+
'django.middleware.common.CommonMiddleware',
59+
'django.middleware.csrf.CsrfViewMiddleware',
60+
'django.contrib.auth.middleware.AuthenticationMiddleware',
61+
'django.contrib.messages.middleware.MessageMiddleware',
62+
'django.middleware.clickjacking.XFrameOptionsMiddleware',
63+
]
64+
65+
ROOT_URLCONF = 'PyLadiesGhana.urls'
66+
67+
TEMPLATES = [
68+
{
69+
'BACKEND': 'django.template.backends.django.DjangoTemplates',
70+
'DIRS': [PROJECT_DIR.parent.child('templates')],
71+
'APP_DIRS': True,
72+
'OPTIONS': {
73+
'context_processors': [
74+
'django.template.context_processors.debug',
75+
'django.template.context_processors.request',
76+
'django.contrib.auth.context_processors.auth',
77+
'django.contrib.messages.context_processors.messages',
78+
],
79+
},
80+
},
81+
]
82+
83+
WSGI_APPLICATION = 'PyLadiesGhana.wsgi.application'
84+
85+
86+
# Database
87+
# https://docs.djangoproject.com/en/2.0/ref/settings/#databases
88+
89+
DATABASES = {
90+
'default': dj_database_url.config(default=config('DATABASE_URL'))
91+
}
92+
93+
# Password validation
94+
# https://docs.djangoproject.com/en/2.0/ref/settings/#auth-password-validators
95+
96+
AUTH_PASSWORD_VALIDATORS = [
97+
{
98+
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
99+
},
100+
{
101+
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
102+
},
103+
{
104+
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
105+
},
106+
{
107+
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
108+
},
109+
]
110+
111+
112+
# Internationalization
113+
# https://docs.djangoproject.com/en/2.0/topics/i18n/
114+
115+
LANGUAGE_CODE = 'en-us'
116+
117+
TIME_ZONE = 'Africa/Accra'
118+
119+
USE_I18N = True
120+
121+
USE_L10N = True
122+
123+
USE_TZ = True
124+
125+
126+
# Static files (CSS, JavaScript, Images)
127+
# https://docs.djangoproject.com/en/2.0/howto/static-files/
128+
129+
STATIC_ROOT = PROJECT_DIR.parent.parent.child('static')
130+
STATIC_URL = '/static/'
131+
STATICFILES_DIRS = (
132+
PROJECT_DIR.child('static'),
133+
)
134+
135+
136+
# Media file (User images upload)
137+
MEDIA_URL = '/media/'
138+
MEDIA_ROOT = PROJECT_DIR.parent.parent.child('media')
139+
140+
# Django - Jet theme colors for admin backend.
141+
JET_DEFAULT_THEME = 'light-gray'
142+
143+
JET_THEMES = [
144+
{
145+
'theme': 'default', # theme folder name
146+
'color': '#47bac1', # color of the theme's button in user menu
147+
'title': 'Default' # theme title
148+
},
149+
{
150+
'theme': 'green',
151+
'color': '#44b78b',
152+
'title': 'Green'
153+
},
154+
{
155+
'theme': 'light-green',
156+
'color': '#2faa60',
157+
'title': 'Light Green'
158+
},
159+
{
160+
'theme': 'light-violet',
161+
'color': '#a464c4',
162+
'title': 'Light Violet'
163+
},
164+
{
165+
'theme': 'light-blue',
166+
'color': '#5EADDE',
167+
'title': 'Light Blue'
168+
},
169+
{
170+
'theme': 'light-gray',
171+
'color': '#222',
172+
'title': 'Light Gray'
173+
}
174+
]

PyLadiesGhana/urls.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"""PyLadiesGhana URL Configuration
2+
3+
The `urlpatterns` list routes URLs to views. For more information please see:
4+
https://docs.djangoproject.com/en/2.0/topics/http/urls/
5+
Examples:
6+
Function views
7+
1. Add an import: from my_app import views
8+
2. Add a URL to urlpatterns: path('', views.home, name='home')
9+
Class-based views
10+
1. Add an import: from other_app.views import Home
11+
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
12+
Including another URLconf
13+
1. Import the include() function: from django.urls import include, path
14+
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
15+
"""
16+
from django.contrib import admin
17+
from django.urls import include, path
18+
19+
urlpatterns = [
20+
path('jet/', include('jet.urls', 'jet')), # Django JET URLS
21+
path('jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')), # Django JET dashboard URLS
22+
path('admin/', admin.site.urls),
23+
path('', include('home.urls', namespace='home')),
24+
path('coc/', include('coc.urls', namespace='coc')),
25+
path('about/', include('about.urls', namespace='about')),
26+
path('resources/', include('resources.urls', namespace='resources')),
27+
path('templates/', include('sponsors.urls', namespace='sponsors')),
28+
path('locations', include('locations.urls', namespace='locations')),
29+
path('contact', include('contact.urls', namespace='contact'))
30+
]

0 commit comments

Comments
 (0)