Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
176 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ example/debug/emails/* | |
!example/debug/emails/.gitkeep | ||
.cache/ | ||
htmlcov/ | ||
/.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__author__ = 'st4lk' | ||
__version__ = '0.4.0' | ||
__author__ = 'st4lk > yoandym' | ||
__version__ = '0.6.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# import users | ||
# import products | ||
# import partner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
example/web_project/apps/partner/migrations/0002_auto_20200629_0912.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10 on 2020-06-29 06:12 | ||
from __future__ import unicode_literals | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('partner', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='affiliate', | ||
options={'verbose_name': 'affiliate', 'verbose_name_plural': 'affiliates'}, | ||
), | ||
migrations.AlterField( | ||
model_name='affiliate', | ||
name='user', | ||
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='user'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
from django.conf.urls import patterns, url | ||
from django.conf.urls import url | ||
from django.contrib.auth.decorators import login_required | ||
from . import views | ||
|
||
|
||
urlpatterns = patterns('', | ||
url(r'^$', | ||
login_required(views.AffiliateView.as_view()), name='affiliate'), | ||
) | ||
app_name = 'partner' | ||
urlpatterns = [ | ||
url(r'^$', login_required(views.AffiliateView.as_view()), name='affiliate'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# -*- coding: utf-8 -*- | ||
from django.conf.urls import patterns, url | ||
from django.conf.urls import url | ||
from . import views | ||
|
||
|
||
urlpatterns = patterns('', | ||
app_name = 'products' | ||
urlpatterns = [ | ||
url(r'^$', views.ProductListView.as_view(), name='list'), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
from django.conf.urls import patterns, url | ||
from django.conf.urls import url | ||
from django.contrib.auth.views import login, logout | ||
from django.views.generic import TemplateView | ||
from . import views | ||
|
||
|
||
urlpatterns = patterns('', | ||
url(r'^signin/$', login, name='login', | ||
kwargs={"template_name": "account/login.html"}), | ||
app_name = 'users' | ||
urlpatterns = [ | ||
url(r'^signin/$', login, name='login', kwargs={"template_name": "account/login.html"}), | ||
url(r'^signup/$', views.UserCreateView.as_view(), name='signup'), | ||
url(r'^logout_confirm/$', | ||
TemplateView.as_view(template_name='account/logout.html'), | ||
name="logout_confirm"), | ||
url(r'^logout_confirm/$', TemplateView.as_view(template_name='account/logout.html'), name="logout_confirm"), | ||
url(r'^logout/$', logout, name='logout'), | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE = config.settings_test | ||
filterwarnings = | ||
error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
django>=1.6,<1.9 | ||
django>=1.10,<1.11 | ||
django-crispy-forms==1.8.1 | ||
Pillow==6.2.2 | ||
model-mommy==1.6.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
appdirs==1.4.4 | ||
atomicwrites==1.4.0 | ||
attrs==19.3.0 | ||
backports.functools-lru-cache==1.6.1 | ||
configparser==4.0.2 | ||
contextlib2==0.6.0.post1 | ||
coverage==5.1 | ||
distlib==0.3.1 | ||
Django==1.10 | ||
-e git+git@github.com:yoandym/django-affiliate.git@c31cf91a707949163feaf0f2a6b844bb4c75e333#egg=django_affiliate | ||
django-crispy-forms==1.8.1 | ||
filelock==3.0.12 | ||
freezegun==0.3.15 | ||
funcsigs==1.0.2 | ||
importlib-metadata==1.7.0 | ||
importlib-resources==2.0.1 | ||
mock==3.0.5 | ||
model-mommy==1.6.0 | ||
more-itertools==5.0.0 | ||
packaging==20.4 | ||
pathlib2==2.3.5 | ||
Pillow==6.2.2 | ||
pluggy==0.13.1 | ||
py==1.9.0 | ||
pyparsing==2.4.7 | ||
pytest==4.6.11 | ||
pytest-django==3.9.0 | ||
python-dateutil==2.8.1 | ||
pytz==2020.1 | ||
scandir==1.10.0 | ||
singledispatch==3.4.0.3 | ||
six==1.15.0 | ||
toml==0.10.1 | ||
tox==3.16.0 | ||
typing==3.7.4.1 | ||
virtualenv==20.0.25 | ||
wcwidth==0.2.5 | ||
zipp==1.2.0 |
Oops, something went wrong.