-
Notifications
You must be signed in to change notification settings - Fork 119
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
18 changed files
with
212 additions
and
50 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
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,16 @@ | ||
#!/usr/bin/env python | ||
import os, sys | ||
here = os.path.abspath(os.path.join(os.path.dirname(__file__))) | ||
rel = lambda *args: os.path.join(here, *args) | ||
|
||
sys.path.insert(0, rel(os.pardir)) | ||
|
||
|
||
if __name__ == "__main__": | ||
sys.path.insert(0, 'src') | ||
sys.path.insert(0, 'tests') | ||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demo.settings") | ||
|
||
from django.core.management import execute_from_command_line | ||
|
||
execute_from_command_line(sys.argv) |
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
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,52 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.9b1 on 2015-11-26 06:08 | ||
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): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='DemoModel', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('char', models.CharField(max_length=255, verbose_name='Ch\xe4\u0159')), | ||
('integer', models.IntegerField()), | ||
('logic', models.BooleanField(default=False)), | ||
('null_logic', models.NullBooleanField(default=None)), | ||
('date', models.DateField()), | ||
('datetime', models.DateTimeField()), | ||
('time', models.TimeField()), | ||
('decimal', models.DecimalField(decimal_places=3, max_digits=10)), | ||
('email', models.EmailField(max_length=254)), | ||
('float', models.FloatField()), | ||
('bigint', models.BigIntegerField()), | ||
('generic_ip', models.GenericIPAddressField()), | ||
('url', models.URLField()), | ||
('text', models.TextField()), | ||
('unique', models.CharField(max_length=255, unique=True)), | ||
('nullable', models.CharField(max_length=255, null=True)), | ||
('blank', models.CharField(blank=True, max_length=255, null=True)), | ||
('not_editable', models.CharField(blank=True, editable=False, max_length=255, null=True)), | ||
('choices', models.IntegerField(choices=[(1, 'Choice 1'), (2, 'Choice 2'), (3, 'Choice 3')])), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='UserDetail', | ||
fields=[ | ||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('note', models.CharField(blank=True, max_length=10)), | ||
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), | ||
], | ||
), | ||
] |
Empty file.
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,16 +1,14 @@ | ||
from __future__ import absolute_import | ||
from django.contrib import admin | ||
from django.conf.urls import patterns, include | ||
from django.conf.urls import include, url | ||
from adminactions import actions | ||
import adminactions.urls | ||
|
||
|
||
admin.autodiscover() | ||
actions.add_to_site(admin.site) | ||
|
||
urlpatterns = patterns('', | ||
(r'admin/', include(admin.site.urls)), | ||
(r'as/', include(adminactions.urls)), | ||
(r'', include(admin.site.urls)), | ||
) | ||
|
||
urlpatterns = ( | ||
url(r'admin/', include(admin.site.urls)), | ||
url(r'as/', include(adminactions.urls)), | ||
url(r'', include(admin.site.urls)), | ||
) |
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
Oops, something went wrong.