added data

This commit is contained in:
Tyrel Souza 2016-07-07 11:13:28 -04:00
parent 601b79b3f2
commit 6ae78513f2
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5
4 changed files with 6 additions and 3 deletions

1
data.json Normal file

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@ class LogBookEntry(models.Model):
airport_from = models.CharField(max_length=4)
airport_to = models.CharField(max_length=4)
remarks = models.TextField(null=True,blank=True)
number_instructor_app = models.DecimalField(decimal_places=1,max_digits=3,null=True,blank=True)
number_instrument_app = models.DecimalField(decimal_places=1,max_digits=3,null=True,blank=True)
number_landings = models.DecimalField(decimal_places=1,max_digits=3,null=True,blank=True)
airplane_sel = models.DecimalField(decimal_places=1,max_digits=3,null=True,blank=True)
airplane_mel = models.DecimalField(decimal_places=1,max_digits=3,null=True,blank=True)

2
requirements.txt Normal file
View File

@ -0,0 +1,2 @@
Django==1.3
MySQL-python==1.2.5

View File

@ -4,9 +4,9 @@ except:
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'tyrellogbook', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'USER': 'root', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.