100+ results for 'django'
Not the results you expected?
0032_auto__chg_field_project_business.py (https://gitlab.com/tsltd/django-timepiece) Python · 186 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Changing field 'Project.business'
12 db.alter_column('timepiece_project', 'business_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['timepiece.Business']))
17 # Changing field 'Project.business'
18 db.alter_column('timepiece_project', 'business_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['timepiece.Business']))
indexes.py (https://github.com/simonw/django-haystack.git) Python · 350 lines
166 self.assertEqual(len(self.cmi.prepare(mock)), 9)
167 self.assertEqual(sorted(self.cmi.prepare(mock).keys()), ['author', 'content', 'django_ct', 'django_id', 'extra', 'hello', 'id', 'pub_date', 'whee'])
169 self.assertEqual(len(self.cmi.full_prepare(mock)), 10)
170 self.assertEqual(sorted(self.cmi.full_prepare(mock).keys()), ['author', 'author_exact', 'content', 'django_ct', 'django_id', 'extra', 'hello', 'id', 'pub_date', 'whee'])
171 self.assertEqual(self.cmi.prepared_data['hello'], u'World!')
264 prepared_data = self.cnmi.prepare(mock)
265 self.assertEqual(len(prepared_data), 4)
266 self.assertEqual(sorted(prepared_data.keys()), ['content', 'django_ct', 'django_id', 'id'])
tests.py (https://github.com/RuuPiE/django-oscar.git) Python · 343 lines
backstage.py (https://github.com/hitigon/woosuko.git) Python · 1036 lines
10 import datetime
11 import Image
12 from django.http import HttpResponseRedirect
13 from django.shortcuts import render_to_response
24 from v2ex.babel.security import CheckAuth
25 from v2ex.babel.ua import detect
26 from django.core.cache import cache as memcache
28 def BackstageHomeHandler(request):
395 page.content = page_content
396 if page_mode == 1:
397 from django.template import Context, Template
398 t = Template(page_content)
399 c = Context({"site" : site, "minisite" : page.minisite, "page" : page})
599 page.content = page_content
600 if page.mode == 1:
601 from django.template import Context, Template
602 t = Template(page_content)
603 c = Context({"site" : site, "minisite" : page.minisite, "page" : page})
0005_auto__add_randomentriesplugin.py (https://github.com/maccesch/django-blog-zinnia.git) Python · 151 lines
9 # Adding model 'RandomEntriesPlugin'
10 db.create_table('cmsplugin_randomentriesplugin', (
11 ('cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)),
12 ('number_of_entries', self.gf('django.db.models.fields.IntegerField')(default=5)),
13 ('template_to_render', self.gf('django.db.models.fields.CharField')(max_length=250, blank=True)),
14 ))
15 db.send_create_signal('plugins', ['RandomEntriesPlugin'])
23 'auth.group': {
24 'Meta': {'object_name': 'Group'},
25 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
27 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
28 },
29 'auth.permission': {
0003_auto__add_field_layout_representacao.py (https://bitbucket.org/marioidival/integrasis-discontinued.git) Python · 181 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
11 # Adding field 'Layout.representacao'
12 db.add_column(u'main_layout', 'representacao',
13 self.gf('django.db.models.fields.CharField')(default=' ', max_length=50),
14 keep_default=False)
23 u'auth.group': {
24 'Meta': {'object_name': 'Group'},
25 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
27 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
28 },
29 u'auth.permission': {
tests.py (https://github.com/treeio/treeio.git) Python · 331 lines
8 """
10 from django.test import TestCase
11 from django.test.client import Client
12 from django.core.urlresolvers import reverse
13 from django.contrib.auth.models import User as DjangoUser
14 from treeio.core.models import User, Group, Perspective, ModuleSetting
15 from treeio.knowledge.models import KnowledgeFolder, KnowledgeItem, KnowledgeCategory
57 def setUp(self):
58 self.group, created = Group.objects.get_or_create(name='test')
59 duser, created = DjangoUser.objects.get_or_create(username=self.username)
60 duser.set_password(self.password)
61 duser.save()
0005_auto__add_field_book_cover__add_field_book_description.py (https://gitlab.com/wilane/Booktype) Python · 208 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'Book.cover'
12 db.add_column('editor_book', 'cover', self.gf('django.db.models.fields.files.ImageField')(max_length=100, null=True), keep_default=False)
14 # Adding field 'Book.description'
15 db.add_column('editor_book', 'description', self.gf('django.db.models.fields.TextField')(default=''), keep_default=False)
0013_populate_supercoach_tip.py (https://github.com/jeffder/legends.git) Python · 194 lines
35 'auth.group': {
36 'Meta': {'object_name': 'Group'},
37 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
39 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['auth.Permission']", 'blank': 'True'})
40 },
41 'auth.permission': {
42 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'object_name': 'Permission'},
43 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
44 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
0007_populate_player.py (https://github.com/jeffder/legends.git) Python · 193 lines
34 'auth.group': {
35 'Meta': {'object_name': 'Group'},
36 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
37 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
38 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'blank': 'True', 'to': "orm['auth.Permission']"})
39 },
40 'auth.permission': {
41 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'object_name': 'Permission', 'unique_together': "(('content_type', 'codename'),)"},
42 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
43 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
44 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
45 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
index.html.erb (https://github.com/KyKyPy3/headbase.git) Ruby HTML · 268 lines
23 </div>
24 <div style="float:left;">
25 <div class="blog_title" style="padding-bottom:.3em;padding-top:.5em;font-size:.9em;"><%= link_to "Which one first: Python or Django?", {:controller => "projects", :action => "show"} -%></div>
26 <div class="tags" style="padding:0;padding-left:5px;padding-right:5px;text-align:center;margin-top:.8em;float:left;">testing</div>
27 <div class="tags" style="padding:0;padding-left:5px;padding-right:5px;text-align:center;margin-top:.8em;float:left;">mathematical</div>
51 </div>
52 <div style="float:left;">
53 <div class="blog_title" style="padding-bottom:.3em;padding-top:.5em;font-size:.9em;"><%= link_to "Which one first: Python or Django?", {:controller => "projects", :action => "show"} -%></div>
54 <div class="tags" style="padding:0;padding-left:5px;padding-right:5px;text-align:center;margin-top:.8em;float:left;">testing</div>
55 <div class="tags" style="padding:0;padding-left:5px;padding-right:5px;text-align:center;margin-top:.8em;float:left;">mathematical</div>
79 </div>
80 <div style="float:left;">
81 <div class="blog_title" style="padding-bottom:.3em;padding-top:.5em;font-size:.9em;"><%= link_to "Which one first: Python or Django?", {:controller => "projects", :action => "show"} -%></div>
82 <div class="tags" style="padding:0;padding-left:5px;padding-right:5px;text-align:center;margin-top:.8em;float:left;">testing</div>
83 <div class="tags" style="padding:0;padding-left:5px;padding-right:5px;text-align:center;margin-top:.8em;float:left;">mathematical</div>
0001_initial.py (https://github.com/treeio/treeio.git) Python · 176 lines
8 from south.db import db
9 from south.v2 import SchemaMigration
10 from django.db import models
17 # Adding model 'KnowledgeFolder'
18 db.create_table('knowledge_knowledgefolder', (
19 ('object_ptr', self.gf('django.db.models.fields.related.OneToOneField')(
20 to=orm['core.Object'], unique=True, primary_key=True)),
21 ('name', self.gf('django.db.models.fields.CharField')
22 (max_length=255)),
23 ('details', self.gf('django.db.models.fields.TextField')
24 (max_length=255, null=True, blank=True)),
25 ('parent', self.gf('django.db.models.fields.related.ForeignKey')(
0001_initial.py (https://github.com/cidadania/e-cidadania.git) Python · 169 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
11 # Adding model 'Debate'
12 db.create_table(u'debate_debate', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('title', self.gf('django.db.models.fields.CharField')(unique=True, max_length=200)),
15 ('description', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
16 ('theme', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
17 ('space', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['spaces.Space'], null=True, blank=True)),
18 ('date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
views.py (https://github.com/kcunning/django-basic-apps.git) Python · 477 lines
1 from django.shortcuts import get_object_or_404, render_to_response
2 from django.http import HttpResponseRedirect
3 from django.template import RequestContext
4 from django.core.urlresolvers import reverse
5 from django.contrib.auth.decorators import login_required
6 from django.contrib.auth.models import User
7 from django.views.generic import date_based
8 from django.db.models import Q
map.py (https://github.com/keiouu/django-eve-db.git) Python · 368 lines
test_page.py (git://github.com/bartTC/django-wakawaka.git) Python · 335 lines
test_organization_users.py (https://gitlab.com/adasauce/glitchtip-backend) Python · 394 lines
bulkloader.yaml (https://github.com/IshaiJaffe/paypal_adaptive.git) YAML · 424 lines
0001_initial.py (https://github.com/openwisp/openwisp-controller.git) Python · 396 lines
0003_auto__add_field_conditionaloffer_num_orders.py (https://github.com/anthony-tresontani/django-oscar.git) Python · 173 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'ConditionalOffer.num_orders'
12 db.add_column('offer_conditionaloffer', 'num_orders', self.gf('django.db.models.fields.PositiveIntegerField')(default=0), keep_default=False)
22 'catalogue.attributeentity': {
23 'Meta': {'object_name': 'AttributeEntity'},
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
26 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '255', 'blank': 'True'}),
27 'type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'entities'", 'to': "orm['catalogue.AttributeEntityType']"})
0031_auto__del_field_project_new_business__add_field_project_business.py (https://gitlab.com/tsltd/django-timepiece) Python · 183 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
19 'auth.group': {
20 'Meta': {'object_name': 'Group'},
21 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
22 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
23 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
24 },
25 'auth.permission': {
26 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
27 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
28 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
0004_auto__add_field_recipe_seasonal.py (https://github.com/vanessacochrane/Recipe-Monkey.git) Python · 193 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'Recipe.seasonal'
12 db.add_column('recipemonkeyapp_recipe', 'seasonal', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
22 'auth.group': {
23 'Meta': {'object_name': 'Group'},
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
26 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
27 },
28 'auth.permission': {
indexes.py (https://github.com/fizx/django-haystack.git) Python · 350 lines
166 self.assertEqual(len(self.cmi.prepare(mock)), 9)
167 self.assertEqual(sorted(self.cmi.prepare(mock).keys()), ['author', 'content', 'django_ct', 'django_id', 'extra', 'hello', 'id', 'pub_date', 'whee'])
169 self.assertEqual(len(self.cmi.full_prepare(mock)), 11)
170 self.assertEqual(sorted(self.cmi.full_prepare(mock).keys()), ['author', 'author_exact', 'content', 'django_ct', 'django_id', 'extra', 'hello', 'id', 'pub_date', 'pub_date_exact', 'whee'])
171 self.assertEqual(self.cmi.prepared_data['hello'], u'World!')
264 prepared_data = self.cnmi.prepare(mock)
265 self.assertEqual(len(prepared_data), 4)
266 self.assertEqual(sorted(prepared_data.keys()), ['content', 'django_ct', 'django_id', 'id'])
views.py (https://github.com/kawazrepos/Kawaz.git) Python · 245 lines
detalle.html (https://gitlab.com/alfredynho/MotosUsm) HTML · 172 lines
0001_initial.py (https://github.com/joskid/ella.git) Python · 213 lines
2 from south.db import db
3 from django.db import models
4 from ella.newman.models import *
186 },
187 'contenttypes.contenttype': {
188 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label','model'),)", 'db_table': "'django_content_type'"},
189 '_stub': True,
190 'id': ('models.AutoField', [], {'primary_key': 'True'})
0003_address_unified.py (https://github.com/daonb/django-cms.git) Python · 157 lines
0008_auto__add_field_testresult_is_passed.py (https://github.com/lexqt/simplelms.git) Python · 147 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'TestResult.is_passed'
12 db.add_column('tests_testresult', 'is_passed', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
22 'auth.group': {
23 'Meta': {'object_name': 'Group'},
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
26 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
27 },
28 'auth.permission': {
0004_auto__add_field_sell_cancel.py (https://github.com/MechanisM/CollectorCity-Market-Place.git) Python · 159 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'Sell.cancel'
12 db.add_column('sell_sell', 'cancel', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
22 'auth.group': {
23 'Meta': {'object_name': 'Group'},
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
26 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
27 },
28 'auth.permission': {
0001_initial.py (https://bitbucket.org/blottergr/capstone_sprint_1.git) Python · 138 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'EmailTemplate'
12 db.create_table('emails_emailtemplate', (
13 ('body', self.gf('django.db.models.fields.TextField')()),
14 ('type', self.gf('django.db.models.fields.CharField')(max_length=1)),
15 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
16 ('name', self.gf('django.db.models.fields.CharField')(max_length=140)),
20 # Adding model 'EmailHistory'
21 db.create_table('emails_emailhistory', (
22 ('placement', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['school.Placement'])),
23 ('email_sent', self.gf('django.db.models.fields.DateTimeField')(blank=True)),
tests.py (https://github.com/rskumar/django.git) Python · 283 lines
2 import os
4 from django.test import TestCase
5 from django.conf import settings
6 from django.contrib.auth.models import User
8 from django.contrib.formtools import wizard
10 class WizardTests(object):
11 urls = 'django.contrib.formtools.wizard.tests.wizardtests.urls'
13 def setUp(self):
96 self.assertEqual(all_data, [
97 {'name': u'Pony', 'thirsty': True, 'user': self.testuser},
98 {'address1': u'123 Main St', 'address2': u'Djangoland'},
99 {'random_crap': u'blah blah'},
100 [{'random_crap': u'blah blah'},
views.py (https://github.com/robertgreiner/jenkins-radiator.git) Python · 218 lines
sbc.sql (https://github.com/flazcano/SBC.git) SQL · 280 lines
212 -- Table structure for "django_session"
213 -- ----------------------------
214 DROP TABLE IF EXISTS "django_session";
215 CREATE TABLE "django_session" (
221 -- ----------------------------
222 -- Table structure for "django_site"
223 -- ----------------------------
224 DROP TABLE IF EXISTS "django_site";
270 -- Indexes structure for table "django_admin_log"
271 -- ----------------------------
272 CREATE INDEX "django_admin_log_fbfc09f1" ON "django_admin_log" ("user_id");
273 CREATE INDEX "django_admin_log_e4470c6e" ON "django_admin_log" ("content_type_id");
276 -- Indexes structure for table "django_session"
277 -- ----------------------------
278 CREATE INDEX "django_session_c25c2c28" ON "django_session" ("expire_date");
280 PRAGMA foreign_keys = true;
views.py (https://github.com/ITIDO/gfatm.git) Python · 246 lines
0002_auto__add_cprsession__del_field_command_equipment__add_field_command_v.py (https://github.com/flavioinnovatech/itrack.git) Python · 154 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'CPRSession'
12 db.create_table('command_cprsession', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('key', self.gf('django.db.models.fields.CharField')(max_length=50)),
15 ('time', self.gf('django.db.models.fields.DateTimeField')()),
16 ))
17 db.send_create_signal('command', ['CPRSession'])
22 # Adding field 'Command.vehicle'
23 db.add_column('command_command', 'vehicle', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['vehicles.Vehicle']), keep_default=False)
0016_auto__add_field_dummybackend_phone_number.py (https://github.com/njvack/hedonometer_old.git) Python · 127 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
22 'texter.backend': {
23 'Meta': {'object_name': 'Backend'},
24 'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
25 'delegate_classname': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
26 'delegate_pk': ('django.db.models.fields.IntegerField', [], {}),
27 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28 'name': ('django.db.models.fields.CharField', [], {'max_length': '200'}),
29 'updated_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'})
tests.py (https://github.com/ahmadmoalla/django.git) Python · 313 lines
test_chatbot.py (https://github.com/gunthercox/ChatterBot.git) Python · 309 lines
0006_refund_field.py (https://bitbucket.org/jobelenus/django-bursar) Python · 171 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'Refund.subtract_for_remaining'
12 db.add_column('bursar_refund', 'subtract_for_remaining', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
23 'Meta': {'object_name': 'Authorization'},
24 'amount': ('bursar.fields.CurrencyField', [], {'null': 'True', 'max_digits': '18', 'decimal_places': '2', 'blank': 'True'}),
25 'capture': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'authorizations'", 'to': "orm['bursar.Payment']"}),
26 'complete': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
27 'customer_profile_id': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
28 'details': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
0001_initial.py (https://github.com/tymofij/adofex.git) Python · 129 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'TxApp'
12 db.create_table('txapps_txapp', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('slug', self.gf('django.db.models.fields.SlugField')(unique=True, max_length=30, db_index=True)),
15 ('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
16 ('description', self.gf('django.db.models.fields.CharField')(max_length=200)),
17 ('url', self.gf('django.db.models.fields.URLField')(unique=True, max_length=200)),
18 ))
19 db.send_create_signal('txapps', ['TxApp'])
0002_auto__chg_field_testimonios_imagen__chg_field_testimonios_comentario.py (https://bitbucket.org/carlituxman/cms.git) Python · 136 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
14 # Changing field 'Testimonios.comentario'
15 db.alter_column('testimonios_testimonios', 'comentario', self.gf('django.db.models.fields.TextField')(max_length=220))
23 # Changing field 'Testimonios.comentario'
24 db.alter_column('testimonios_testimonios', 'comentario', self.gf('django.db.models.fields.CharField')(max_length=220))
0001_initial.py (https://github.com/nephthys/Nouweo.git) Python · 134 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
11 # Adding model 'Idea'
12 db.create_table(u'ideas_idea', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('deleted', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
15 ('title', self.gf('django.db.models.fields.CharField')(max_length=150)),
16 ('content', self.gf('django.db.models.fields.TextField')()),
17 ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
18 ('created_by', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='created_by', null=True, to=orm['community.User'])),
0001_initial.py (https://gitlab.com/mathuin/hyperkitty) Python · 273 lines
3 from __future__ import unicode_literals
5 from django.db import models, migrations
6 import django.db.models.deletion
7 import paintstore.fields
8 import django.utils.timezone
9 from django.conf import settings
80 ('subject_prefix', models.CharField(max_length=255)),
81 ('archive_policy', models.IntegerField(default=2, choices=[(0, b'never'), (1, b'private'), (2, b'public')])),
82 ('created_at', models.DateTimeField(default=django.utils.timezone.now)),
83 ],
84 options={
135 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
136 ('thread_id', models.CharField(max_length=255, db_index=True)),
137 ('date_active', models.DateTimeField(default=django.utils.timezone.now, db_index=True)),
138 ],
139 options={
0007_change_summary_to_charfield.py (https://github.com/mozilla/mozilla-ignite.git) Python · 145 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Changing field 'Submission.brief_description'
12 db.alter_column('challenges_submission', 'brief_description', self.gf('django.db.models.fields.CharField')(max_length=200))
17 # Changing field 'Submission.brief_description'
18 db.alter_column('challenges_submission', 'brief_description', self.gf('django.db.models.fields.TextField')())
sitetree.py (https://github.com/bluemarble/django-sitetree.git) Python · 258 lines
1 from django.conf import settings
2 from django import template
3 from django import VERSION
4 from django.templatetags.static import PrefixNode
11 sitetree = SiteTree()
13 DJANGO_VERSION_INT = int('%s%s%s' % VERSION[:3])
125 @register.tag
126 def sitetree_url(parser, token):
127 """This tag is much the same as Django built-in 'url' tag.
128 The difference is that after 'for' it should get TreeItem object.
129 And, yes, you can pass some arguments after that TreeItem object.
0005_auto__chg_field_post_created_at.py (https://github.com/alvabai/openparty.git) Python · 141 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Changing field 'Post.created_at'
12 db.alter_column('core_post', 'created_at', self.gf('django.db.models.fields.DateTimeField')())
17 # Changing field 'Post.created_at'
18 db.alter_column('core_post', 'created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True))
0001_initial.py (https://github.com/rcohen1969/Ecclesia.git) Python · 140 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'Notification'
12 db.create_table('notifications_notification', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('text', self.gf('django.db.models.fields.TextField')(max_length=1000)),
15 ('recipient', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True, blank=True)),
16 ('discussion', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['discussions.Discussion'], null=True, blank=True)),
17 ('story', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['discussions.Story'], null=True, blank=True)),
18 ('failed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
forms.py (https://github.com/nexascale/nexathan.git) Python · 270 lines
0017_auto__add_field_video_rank.py (https://gitlab.com/urbanjunglestudio/whambush-api) Python · 141 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
11 # Adding field 'Video.rank'
12 db.add_column(u'videos_video', 'rank',
13 self.gf('django.db.models.fields.IntegerField')(default=0, blank=True),
14 keep_default=False)
23 u'accounts.follow': {
24 'Meta': {'unique_together': "(('from_user', 'to_user'),)", 'object_name': 'Follow'},
25 'from_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'follow_set_from'", 'to': u"orm['accounts.WhamUser']"}),
26 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27 'to_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'follow_set_to'", 'to': u"orm['accounts.WhamUser']"})
28 },
29 u'accounts.whamuser': {
views.py (http://archdoom.googlecode.com/svn/trunk/) Python · 321 lines
1 # Create your views here.
2 from django.http import HttpResponseRedirect
3 from django.core.urlresolvers import reverse
4 from django.shortcuts import render_to_response, get_object_or_404
5 from django.template import RequestContext
6 from bmforum.member.forms import MemberForm, PrivateMessageForm
7 from django.contrib.auth.models import User, Group
8 from bmforum.member.models import Member, PrivateMessage
9 from bmforum.forum.models import Entry, Topic, TopicPriorities
10 from bmforum.forum.forms import EntryForm
11 from bmforum.planet.models import Blog
12 from django.contrib.auth import authenticate, login, logout
13 from datetime import datetime
14 from bmforum.ogrenciCalismalari.models import *
0019_auto__add_fileattachment.py (https://bitbucket.org/acgray/recruitsql.git) Python · 147 lines
8 # Adding model 'FileAttachment'
9 db.create_table(u'jobs_fileattachment', (
10 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
11 ('attachment', self.gf('django.db.models.fields.files.FileField')(max_length=100)),
12 ('label', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
13 ('position', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['jobs.Position'])),
24 u'jobs.applicationform': {
25 'Meta': {'object_name': 'ApplicationForm'},
26 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27 'intro_text': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
28 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'})
29 },
30 u'jobs.field': {
0001_initial.py (https://github.com/samjacoby/katran.git) Python · 141 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'Sponsor'
12 db.create_table('stamps_sponsor', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
15 ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
16 ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
17 ('link', self.gf('django.db.models.fields.CharField')(max_length=100)),
18 ))
19 db.send_create_signal('stamps', ['Sponsor'])
0016_auto__add_field_video_view_count.py (https://gitlab.com/urbanjunglestudio/whambush-api) Python · 124 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
11 # Adding field 'Video.view_count'
12 db.add_column(u'videos_video', 'view_count',
13 self.gf('django.db.models.fields.IntegerField')(default=0, blank=True),
14 keep_default=False)
23 u'accounts.follow': {
24 'Meta': {'unique_together': "(('from_user', 'to_user'),)", 'object_name': 'Follow'},
25 'from_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'follow_set_from'", 'to': u"orm['accounts.WhamUser']"}),
26 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27 'to_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'follow_set_to'", 'to': u"orm['accounts.WhamUser']"})
28 },
29 u'accounts.whamuser': {
0022_auto__add_contactus.py (https://bitbucket.org/cadosolutions/cadoshop.git) Python · 125 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
11 # Adding model 'ContactUs'
12 db.create_table(u'cadoshop_contactus', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('name', self.gf('django.db.models.fields.CharField')(max_length=256)),
15 ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
16 ('message', self.gf('django.db.models.fields.TextField')()),
29 'body': ('cadocms.fields.HTMLField', [], {'null': 'True', 'blank': 'True'}),
30 'body_en': ('cadocms.fields.HTMLField', [], {'null': 'True', 'blank': 'True'}),
31 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32 'key': ('django.db.models.fields.CharField', [], {'max_length': '256'})
0007_add_customer_reference.py (https://github.com/aschem/django-chargify.git) Python · 118 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'Customer._reference'
12 db.add_column('chargify_customer', '_reference', self.gf('django.db.models.fields.CharField')(max_length=50, null=True, blank=True), keep_default=False)
22 'auth.group': {
23 'Meta': {'object_name': 'Group'},
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
26 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
27 },
28 'auth.permission': {
0003_auto__add_unique_newsletter_slug.py (https://github.com/drye/emencia-django-newsletter.git) Python · 126 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
19 'auth.group': {
20 'Meta': {'object_name': 'Group'},
21 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
22 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
23 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
24 },
25 'auth.permission': {
26 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
27 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
28 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
0009_auto__add_field_round_short_name.py (https://github.com/blenderbox/dppl.git) Python · 139 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'Round.short_name'
12 db.add_column('theleague_round', 'short_name', self.gf('django.db.models.fields.CharField')(default=1, max_length=1), keep_default=False)
22 'auth.group': {
23 'Meta': {'object_name': 'Group'},
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
26 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
27 },
28 'auth.permission': {
0001_initial.py (https://github.com/joskid/ella.git) Python · 178 lines
1 from south.db import db
2 from django.db import models
4 from ella.core.models import *
108 'core.category': {
109 'Meta': {'ordering': "('site','tree_path',)", 'unique_together': "(('site','tree_path'),)"},
110 'description': ('django.db.models.fields.TextField', ['_("Category Description")'], {'blank': 'True'}),
111 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112 'site': ('django.db.models.fields.related.ForeignKey', ["orm['sites.Site']"], {}),
113 'slug': ('django.db.models.fields.SlugField', ["_('Slug')"], {'max_length': '255'}),
114 'title': ('django.db.models.fields.CharField', ['_("Category Title")'], {'max_length': '200'}),
115 'tree_parent': ('django.db.models.fields.related.ForeignKey', ["orm['core.Category']"], {'null': 'True', 'verbose_name': '_("Parent Category")', 'blank': 'True'}),
116 'tree_path': ('django.db.models.fields.CharField', [], {'editable': 'False', 'max_length': '255', 'verbose_name': '_("Path from root category")'})
117 },
118 'core.placement': {
0010_auto__add_field_evolution_detail.py (https://gitlab.com/thomasphillips3/pokemonapp) Python · 135 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
11 # Adding field 'Evolution.detail'
12 db.add_column(u'pokemon_evolution', 'detail',
13 self.gf('django.db.models.fields.CharField')(max_length=10, null=True),
14 keep_default=False)
23 u'pokemon.ability': {
24 'Meta': {'object_name': 'Ability'},
25 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
26 'description': ('django.db.models.fields.TextField', [], {'max_length': '200'}),
27 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28 'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
models.py (https://github.com/lmorchard/home-snippets-server-lib.git) Python · 277 lines
8 """
10 from django.db import models
12 class Publication(models.Model):
40 # Create an Article.
41 >>> a1 = Article(id=None, headline='Django lets you build Web apps easily')
43 # You can't associate it with a Publication until it's been saved.
81 [<Article: NASA uses Python>]
82 >>> p1.article_set.all()
83 [<Article: Django lets you build Web apps easily>, <Article: NASA uses Python>]
84 >>> Publication.objects.get(id=4).article_set.all()
85 [<Article: NASA uses Python>]
views.py (https://github.com/ockham/pinax.git) Python · 312 lines
1 from django.db.models import Q
2 from django.core.exceptions import ObjectDoesNotExist
3 from django.core.urlresolvers import reverse
4 from django.http import Http404, HttpResponseRedirect, get_host
5 from django.shortcuts import render_to_response, get_object_or_404
6 from django.template import RequestContext
7 from django.utils.translation import ugettext, ugettext_lazy as _
9 from django.contrib import messages
10 from django.contrib.auth.models import User
11 from django.contrib.auth.decorators import login_required
phpbb_blue_cs.css (https://bitbucket.org/marcosbartolome/solfonica.git) CSS · 395 lines
178 background-image : url(../img/icon_sticky.gif);
179 }
180 .djangobb , .djangobb INPUT , .djangobb SELECT , .djangobb TEXTAREA , .djangobb OPTGROUP {
181 font-family : Verdana, Arial, Helvetica, sans-serif;
182 }
188 font-size : 68.75%;
189 }
190 .djangobb TABLE , .djangobb INPUT , .djangobb SELECT , .djangobb OPTGROUP , .djangobb TEXTAREA , DIV.postmsg P.postedit {
191 font-size : 1em;
192 }
264 padding : 3px 6px;
265 }
266 .djangobb P , .djangobb UL , .djangobb DL , DIV.blockmenu LI , .djangobb LABEL , #announce DIV.inbox DIV {
267 padding : 3px 0;
268 }
0002_auto__add_field_latestobjecttypesplugin_template_to_render__add_field_sele.py (https://github.com/suruchi/django-gstudio.git) Python · 132 lines
9 # Adding field 'LatestObjecttypesPlugin.template_to_render'
10 db.add_column('cmsplugin_latestobjecttypesplugin', 'template_to_render', self.gf('django.db.models.fields.CharField')(default='gstudio/cms/objecttype_list.html', max_length=250, blank=True), keep_default=False)
12 # Adding field 'SelectedObjecttypesPlugin.template_to_render'
13 db.add_column('cmsplugin_selectedobjecttypesplugin', 'template_to_render', self.gf('django.db.models.fields.CharField')(default='gstudio/cms/objecttype_list.html', max_length=250, blank=True), keep_default=False)
15 def backwards(self, orm):
24 'auth.group': {
25 'Meta': {'object_name': 'Group'},
26 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
27 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
28 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
29 },
30 'auth.permission': {
0001_split.py (https://bitbucket.org/bookrepublic/satchmo.git) Python · 115 lines
28 'configurable.configurableproduct': {
29 'Meta': {'object_name': 'ConfigurableProduct'},
30 'create_subs': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
31 'option_group': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['product.OptionGroup']", 'blank': 'True'}),
32 'product': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['product.Product']", 'unique': 'True', 'primary_key': 'True'})
33 },
34 'configurable.productvariation': {
35 'Meta': {'object_name': 'ProductVariation'},
36 'options': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['product.Option']"}),
37 'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['configurable.ConfigurableProduct']"}),
38 'product': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['product.Product']", 'unique': 'True', 'primary_key': 'True'})
39 },
40 'product.category': {
organisation_budget.py (https://github.com/akvo/akvo-rsr.git) Python · 288 lines
0016_auto__add_field_export_export_url.py (https://github.com/SEL-Columbia/formhub.git) Python · 139 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
11 # Adding field 'Export.export_url'
12 db.add_column('odk_viewer_export', 'export_url',
13 self.gf('django.db.models.fields.URLField')(default=None, max_length=200, null=True),
14 keep_default=False)
23 'auth.group': {
24 'Meta': {'object_name': 'Group'},
25 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
27 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
28 },
29 'auth.permission': {
test_list_summary.py (https://gitlab.com/msapiro/postorius) Python · 196 lines
tests.py (https://bitbucket.org/bluezoo/django.git) Python · 256 lines
0014_auto__add_inscriptionmailing.py (https://github.com/quinode/fcpe63.git) Python · 137 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'InscriptionMailing'
12 db.create_table('fcpe_inscriptionmailing', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('personne', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['fcpe.Personne'])),
15 ('liste', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['django_mailman.List'])),
16 ))
17 db.send_create_signal('fcpe', ['InscriptionMailing'])
116 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
117 'liste': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['django_mailman.List']"}),
118 'personne': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['fcpe.Personne']"})
category.py (https://github.com/bartels/satchless.git) Python · 207 lines
tests.py (https://github.com/gabrielhurley/horizon.git) Python · 216 lines
0001_initial.py (https://github.com/maartendraijer/django-fiber.git) Python · 152 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'ContentItem'
12 db.create_table('fiber_contentitem', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
15 ('updated', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
16 ('name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
17 ('html', self.gf('django.db.models.fields.TextField')()),
18 ('protected', self.gf('django.db.models.fields.BooleanField')(default=False)),
0023_queued_date.py (https://github.com/saidimu/NewsBlur.git) Python · 125 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'Feed.queued_date'
12 db.add_column('feeds', 'queued_date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now, db_index=True), keep_default=False)
22 'rss_feeds.duplicatefeed': {
23 'Meta': {'object_name': 'DuplicateFeed'},
24 'duplicate_address': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
25 'feed': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'duplicate_addresses'", 'to': "orm['rss_feeds.Feed']"}),
26 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
27 },
28 'rss_feeds.feed': {
tests.py (https://github.com/feuervogel/lfs.git) Python · 272 lines
0013_auto__add_scheduledsample__add_field_experiment_max_samples_per_day__a.py (https://github.com/njvack/hedonometer_old.git) Python · 153 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'ScheduledSample'
12 db.create_table('texter_scheduledsample', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('created_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
15 ('updated_at', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
16 ('task_day', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['texter.TaskDay'])),
17 ('scheduled_at', self.gf('django.db.models.fields.DateTimeField')()),
18 ('run_state', self.gf('django.db.models.fields.CharField')(default='scheduled', max_length=255)),
0001_initial.py (https://github.com/spookylukey/djangoproject.com.git) Python · 143 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'ICLA'
12 db.create_table('cla_icla', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('user', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='iclas', null=True, to=orm['auth.User'])),
15 ('date_signed', self.gf('django.db.models.fields.DateField')()),
16 ('cla', self.gf('django.db.models.fields.files.FileField')(max_length=100, blank=True)),
17 ('full_name', self.gf('django.db.models.fields.CharField')(max_length=250, blank=True)),
18 ('email', self.gf('django.db.models.fields.EmailField')(max_length=75, blank=True)),
urls.py (https://github.com/liaowang11/django.git) Python · 205 lines
0001_initial.py (https://github.com/qualitio/qualitio.git) Python · 145 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'Organization'
12 db.create_table('organizations_organization', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
15 ('slug', self.gf('django.db.models.fields.SlugField')(db_index=True, max_length=50, blank=True)),
16 ('homepage', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
17 ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
18 ('googleapps_domain', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
scheduler_test.py (https://github.com/AdeneganJosiah/Sendinel.git) Python · 314 lines
tests.py (https://bitbucket.org/bluezoo/django.git) Python · 195 lines
0007_rename.py (https://github.com/GunioRobot/price.git) Python · 147 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
40 'auth.group': {
41 'Meta': {'object_name': 'Group'},
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43 'name': ('django.db.models.fields.CharField', [], {'max_length': '80', 'unique': 'True'}),
44 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
45 },
46 'auth.permission': {
47 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
48 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
49 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
0016_auto__del_field_package_pypi_home_page.py (https://github.com/wwitzel3/opencomparison.git) Python · 131 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
20 # Adding field 'Package.pypi_home_page'
21 db.add_column('package_package', 'pypi_home_page', self.gf('django.db.models.fields.URLField')(max_length=200, null=True, blank=True), keep_default=False)
23 # Adding M2M table for field related_packages on 'Package'
33 'auth.group': {
34 'Meta': {'object_name': 'Group'},
35 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
37 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
38 },
39 'auth.permission': {
0020_from_taggit.py (https://github.com/MechanisM/philo.git) Python · 154 lines
3 from south.db import db
4 from south.v2 import DataMigration
5 from django.db import models
7 class Migration(DataMigration):
23 models = {
24 'contenttypes.contenttype': {
25 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
26 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
27 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
28 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
29 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
30 },
31 'philo.attribute': {
0004_auto__add_field_configuration_manual.py (https://github.com/lizardsystem/lizard-esf.git) Python · 134 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding field 'Configuration.manual'
12 db.add_column('lizard_esf_configuration', 'manual', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False)
22 'auth.group': {
23 'Meta': {'object_name': 'Group'},
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
26 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
27 },
28 'auth.permission': {
condition_tests.py (https://github.com/anthony-tresontani/django-oscar.git) Python · 215 lines
0014_auto__add_stakeholder.py (https://github.com/luminousflux/lflux.git) Python · 129 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
11 # Adding model 'Stakeholder'
12 db.create_table('lstory_stakeholder', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100, null=True, blank=True)),
15 ('name', self.gf('django.db.models.fields.CharField')(max_length=255)),
16 ('website', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
17 ('other_contacts', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
18 ('description', self.gf('django.db.models.fields.TextField')(blank=True)),
0007_latlng.py (https://github.com/mthornhill/django-cms.git) Python · 129 lines
1 import django
2 from south.db import db
3 from django.db import models
27 models = {
28 'cms.cmsplugin': {
29 'creation_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
30 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
31 'language': ('django.db.models.fields.CharField', [], {'max_length': '5', 'db_index': 'True'}),
32 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
33 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
34 'page': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.Page']"}),
35 'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.CMSPlugin']", 'null': 'True', 'blank': 'True'}),
36 'placeholder': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
utils.py (https://github.com/daonb/django-cms.git) Python · 201 lines
views.py (https://github.com/yueyongyue/saltshaker.git) Python · 423 lines
1 from django.shortcuts import render,render_to_response
2 from django.http import HttpResponse, HttpResponseRedirect
3 from django.contrib.auth import logout
4 from django.contrib.auth import authenticate
5 from django.contrib.auth import login as auth_login
6 from django.contrib.auth.decorators import login_required
7 from django.contrib.auth.models import User
8 from groups.models import Groups,Hosts
9 from account.models import UserProfiles,Businesses,Privileges
0001_initial.py (https://github.com/flavioinnovatech/itrack.git) Python · 134 lines
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
11 # Adding model 'Driver'
12 db.create_table('drivers_driver', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
15 ('vehicle', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['vehicles.Vehicle'])),
16 ('identification', self.gf('django.db.models.fields.IntegerField')()),
17 ('address', self.gf('django.db.models.fields.CharField')(max_length=200)),
18 ('telephone1', self.gf('django.db.models.fields.CharField')(max_length=20)),
conf.py
(https://bitbucket.org/Surgo/the-django-book-japanese/)
Python · 195 lines
✨ Summary
This Python code configures a Sphinx documentation project for Django Book (Japanese version). It sets up various options, such as theme, templates, and output formats, to generate HTML and LaTeX documents from source files. The configuration defines project metadata, document structure, and formatting styles for the generated documents.
This Python code configures a Sphinx documentation project for Django Book (Japanese version). It sets up various options, such as theme, templates, and output formats, to generate HTML and LaTeX documents from source files. The configuration defines project metadata, document structure, and formatting styles for the generated documents.
1 # -*- coding: utf-8 -*-
2 #
3 # The Django Book (日本語) documentation build configuration file, created by
4 # sphinx-quickstart on Sun Jan 17 16:52:42 2010.
5 #
39 # General information about the project.
40 project = u'The Django Book (日本語)'
41 copyright = u'2010, Kosei Kitahara'
173 # (source start file, target name, title, author, documentclass [howto/manual]).
174 latex_documents = [
175 ('index', 'TheDjangoBook.tex', u'The Django Book (日本語) Documentation',
176 u'Kosei Kitahara', 'manual'),
177 ]
initial-data.txt (git://github.com/django/django.git) Plain Text · 97 lines
23 automatically, except if you use :attr:`.TransactionTestCase.fixtures`.
25 A fixture is a collection of data that Django knows how to import into a
26 database. The most straightforward way of creating a fixture if you've already
27 got some data is to use the :djadmin:`manage.py dumpdata <dumpdata>` command.
81 again, you'll wipe out any changes you've made.
83 Where Django finds fixture files
84 --------------------------------
86 By default, Django looks in the ``fixtures`` directory inside each app for
87 fixtures. You can set the :setting:`FIXTURE_DIRS` setting to a list of
88 additional directories where Django should look.
user_settings.py
(https://bitbucket.org/copelco/django-timepiece/)
Python · 62 lines
✨ Summary
This Django test case verifies that a user can successfully edit their profile settings, including updating their default activity and redirecting to the next page after submission. It also checks that the updated activity is saved correctly in the UserProfile model. The tests cover two scenarios: editing the profile with a valid form submission and verifying the default activity setting.
This Django test case verifies that a user can successfully edit their profile settings, including updating their default activity and redirecting to the next page after submission. It also checks that the updated activity is saved correctly in the UserProfile model. The tests cover two scenarios: editing the profile with a valid form submission and verifying the default activity setting.
0803.rst
(https://code.google.com/p/lino/)
ReStructuredText · 31 lines
✨ Summary
The code defines a new field called disabled_fields
in an ExtJS store, which is used to disable certain fields in a grid based on the value of another field. The field is defined as a custom class that extends the :class:lino.ui.extjsw.ext_store.StoreField
class and overrides its getData()
method to return the disabled fields for each record.
The code defines a new field called disabled_fields
in an ExtJS store, which is used to disable certain fields in a grid based on the value of another field. The field is defined as a custom class that extends the :class:lino.ui.extjsw.ext_store.StoreField
class and overrides its getData()
method to return the disabled fields for each record.
26 ------
28 Ha! Die Erleuchtung (nach einem Tag des Grübelns): nicht wie ich mir das heute morgen dachte, sondern einfach im Store ein Pseudo-Datenfeld 'disabled_fields' definieren. Dazu brauchen wir eine eigene Klasse :class:`lino.ui.extjsw.ext_store.DisabledFieldsStoreField`, die eine ganz neue Art von :class:`lino.ui.extjsw.ext_store.StoreField` ist, weil sie keinem existierenden `django.db.models.Field` entspricht. Deshalb darf man bis auf weiteres in keinem Model ein *echtes* Datenbankfeld mit dem Namen 'disabled_fields' definieren. Falls das mal stören sollte, muss ich den verwendeten Namen z.B. nach '_disabled_fields' ändern.
30 Nebenbei: :mod:`lino.ui.extjsu` kann jetzt weg. Und :mod:`lino.ui.extjsw` heißt jetzt wieder :mod:`lino.ui.extjs`.
django.po (http://entelib.googlecode.com/svn/trunk/) Unknown · 380 lines
1 # Django Debug Toolbar in Russian.
2 # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
3 # This file is distributed under the same license as the PACKAGE package.
136 #: templates/debug_toolbar/redirect.html:9
137 msgid ""
138 "The Django Debug Toolbar has intercepted a redirect to the above URL for "
139 "debug viewing purposes. You can click the above link to continue with the "
140 "redirect as normal. If you'd like to disable this feature, set the "
142 "<code>INTERCEPT_REDIRECTS</code> to <code>False</code>."
143 msgstr ""
144 "Django Debug Toolbar в отладочных целях перехватила редирект на адрес, "
145 "указанный выше. Вы можете нажать на ссылку, чтобы продолжить обычное "
146 "выполнение. Если хотите отключить это поведение, установите в словаре "
diffsettings.py
(https://code.google.com/p/mango-py/)
Python · 33 lines
✨ Summary
This Django management command displays differences between the current settings.py and Django’s default settings. It compares each setting in the user’s configuration with its corresponding value in the default settings, highlighting any discrepancies with a “###” indicator. The output is a human-readable string showing the differing settings.
This Django management command displays differences between the current settings.py and Django’s default settings. It compares each setting in the user’s configuration with its corresponding value in the default settings, highlighting any discrepancies with a “###” indicator. The output is a human-readable string showing the differing settings.
1 from django.core.management.base import NoArgsCommand
3 def module_to_dict(module, omittable=lambda k: k.startswith('_')):
7 class Command(NoArgsCommand):
8 help = """Displays differences between the current settings.py and Django's
9 default settings. Settings that don't appear in the defaults are
10 followed by "###"."""
14 def handle_noargs(self, **options):
15 # Inspired by Postfix's "postconf -n".
16 from django.conf import settings, global_settings
18 # Because settings are imported lazily, we need to explicitly load them.
0001_initial.py
(https://bitbucket.org/mag007/django-tours.git)
Python · 180 lines
✨ Summary
This is a Django app’s models.py
file, defining its database schema. It creates tables for concerts, tours, venues, and supporting acts, with relationships between them. The code specifies field types, constraints, and foreign keys to establish these connections. This schema will be used to store data in the app’s database.
This is a Django app’s models.py
file, defining its database schema. It creates tables for concerts, tours, venues, and supporting acts, with relationships between them. The code specifies field types, constraints, and foreign keys to establish these connections. This schema will be used to store data in the app’s database.
14 ('song', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['django_discography.Song'])),
15 ('concert', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['django_tours.Concert'])),
16 ('track_number', self.gf('django.db.models.fields.IntegerField')()),
24 ('start_time', self.gf('django.db.models.fields.TimeField')(null=True, blank=True)),
25 ('concert', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['django_tours.Concert'])),
26 ))
27 db.send_create_signal('django_tours', ['SupportingAct'])
31 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
32 ('tour', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['django_tours.Tour'])),
33 ('venue', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['django_tours.Venue'])),
136 'sold_out': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
137 'songs': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'concerts'", 'symmetrical': 'False', 'through': "orm['django_tours.SetListSongOrder']", 'to': "orm['django_discography.Song']"}),
138 'tour': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['django_tours.Tour']"}),
141 'django_tours.setlistsongorder': {
142 'Meta': {'object_name': 'SetListSongOrder'},
143 'concert': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['django_tours.Concert']"}),
144 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
1207.rst
(https://code.google.com/p/lino/)
ReStructuredText · 112 lines
✨ Summary
This is a log file of changes made to the Lino project on December 7, 2010. It includes fixes for two bugs: one related to setting quick filters in detail windows and another related to inserting new contracts. The log also mentions the addition of a new field dsbe.ContractType.ref
and the change of default language from lino.tools
to lino.utils.babel
.
This is a log file of changes made to the Lino project on December 7, 2010. It includes fixes for two bugs: one related to setting quick filters in detail windows and another related to inserting new contracts. The log also mentions the addition of a new field dsbe.ContractType.ref
and the change of default language from lino.tools
to lino.utils.babel
.
42 File "/var/snapshots/django/django/core/handlers/wsgi.py", line 265, in __call__ 2010] [error] Starting user interface lino.ui.extjs
43 response = self.get_response(request)
44 File "/var/snapshots/django/django/core/handlers/base.py", line 160, in get_response0] [error] /var/snapshots/django/django/core/context_processors.py:27: DeprecationWarning: The c
45 response = self.handle_uncaught_exception(request, resolver, sys.exc_info())d.
46 File "/var/snapshots/django/django/core/handlers/base.py", line 109, in get_responseog
52 File "/var/snapshots/lino/lino/modlib/dsbe/models.py", line 763, in full_clean
53 self.type = self.company.type.contract_type
54 File "/var/snapshots/django/django/db/models/fields/related.py", line 316, in __set__
55 (instance._meta.object_name, self.field.name))
56 ValueError: Cannot assign None: "Contract.type" does not allow null values.
92 print f
94 Das liegt aber daran, dass Django-Modelle eine `__metaclass__` definieren,
95 die in der Klasse einiges umkrempelt. Also statt `getattr(model,name)`
96 muss man `f = model._meta.get_field()` machen.
django.po (git://github.com/django/django.git) Unknown · 23 lines
1 # This file is distributed under the same license as the Django package.
2 #
3 # Translators:
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: Django\n"
8 "Report-Msgid-Bugs-To: \n"
9 "POT-Creation-Date: 2012-10-15 10:57+0200\n"
10 "PO-Revision-Date: 2012-02-14 13:16+0000\n"
11 "Last-Translator: Jannis Leidel <jannis@leidel.info>\n"
12 "Language-Team: Czech (http://www.transifex.com/projects/p/django/language/"
13 "cs/)\n"
14 "MIME-Version: 1.0\n"