Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Keel - LDH Middleware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Noe Nieto
Keel - LDH Middleware
Commits
d4a7d6c8
Commit
d4a7d6c8
authored
Feb 08, 2019
by
Noe Nieto
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Not working yet
parent
1cbafc56
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
models.py
crowdfunding/models.py
+2
-2
settings.py
middleware/settings.py
+4
-4
urls.py
middleware/urls.py
+1
-0
No files found.
crowdfunding/models.py
View file @
d4a7d6c8
...
...
@@ -2,11 +2,11 @@ from django.db import models
from
django.contrib.auth
import
get_user_model
User
=
get_user_model
()
#
User = get_user_model()
# Create your models here.
class
ChosenReward
(
models
.
Model
):
user
=
models
.
OneToOneField
(
User
)
#
user = models.OneToOneField(User)
reward
=
models
.
IntegerField
()
middleware/settings.py
View file @
d4a7d6c8
...
...
@@ -10,9 +10,9 @@ from .settings_original import *
# LOAD CONFIGURATION FILE
#
CONFIG_PATH
=
'/
etc/opt/purist/middleware
/config.ini'
SECRET_PATH
=
'/
etc/opt/purist/middleware
/secret.ini'
LINK_PROFILE_PATH
=
'/
etc/opt/purist/middleware
/link_profile.strict.yml'
CONFIG_PATH
=
'/
ldh_dev_root/etc
/config.ini'
SECRET_PATH
=
'/
ldh_dev_root/etc
/secret.ini'
LINK_PROFILE_PATH
=
'/
ldh_dev_root/etc
/link_profile.strict.yml'
config
=
Config
(
RepositoryIni
(
CONFIG_PATH
))
secret_config
=
Config
(
RepositoryIni
(
SECRET_PATH
))
...
...
@@ -44,7 +44,7 @@ ALLOWED_HOSTS = config("ALLOWED_HOSTS", cast=Csv())
#
INSTALLED_APPS
+=
[
"crispy_forms"
,
"django_agpl"
,
"django_celery_beat"
,
"django_extensions"
,
"ldapregister"
,
"limitmonitor"
,
"purist"
,
"captcha"
]
"limitmonitor"
,
"purist"
,
"captcha"
,
"crowdfunding"
,
"registration"
]
#
# AGPL APPLICATION
...
...
middleware/urls.py
View file @
d4a7d6c8
...
...
@@ -44,5 +44,6 @@ urlpatterns = [
url
(
r'^download/'
,
include
(
'django_agpl.urls'
)),
url
(
r'^jslicense/$'
,
purist
.
views
.
jslicense
,
name
=
'jslicense'
),
url
(
r'^captcha/'
,
include
(
'captcha.urls'
)),
url
(
r'^crowdfund/(?P<reward>\d+)/$'
,
CrowdFundRegistrationView
.
as_view
()),
]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment