Skip to content

Commit 19dc0ba

Browse files
committed
Files rebased
0 parents  commit 19dc0ba

File tree

91 files changed

+111100
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+111100
-0
lines changed

db.sqlite3

232 KB
Binary file not shown.

manage.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env python
2+
import os
3+
import sys
4+
5+
if __name__ == "__main__":
6+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "qrious.settings")
7+
try:
8+
from django.core.management import execute_from_command_line
9+
except ImportError:
10+
# The above import may fail for some other reason. Ensure that the
11+
# issue is really that Django is missing to avoid masking other
12+
# exceptions on Python 2.
13+
try:
14+
import django
15+
except ImportError:
16+
raise ImportError(
17+
"Couldn't import Django. Are you sure it's installed and "
18+
"available on your PYTHONPATH environment variable? Did you "
19+
"forget to activate a virtual environment?"
20+
)
21+
raise
22+
execute_from_command_line(sys.argv)
155 Bytes
Binary file not shown.
282 Bytes
Binary file not shown.
1.38 KB
Binary file not shown.

myapp/__pycache__/urls.cpython-36.pyc

579 Bytes
Binary file not shown.
2.13 KB
Binary file not shown.

myapp/admin.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.contrib import admin
2+
from myapp.models import Userdata,Question
3+
4+
# Register your models here.
5+
admin.site.register(Userdata)
6+
admin.site.register(Question)

myapp/apps.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class MyappConfig(AppConfig):
5+
name = 'myapp'

myapp/migrations/0001_initial.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.5 on 2019-02-12 16:14
3+
from __future__ import unicode_literals
4+
5+
from django.conf import settings
6+
from django.db import migrations, models
7+
import django.db.models.deletion
8+
9+
10+
class Migration(migrations.Migration):
11+
12+
initial = True
13+
14+
dependencies = [
15+
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
16+
]
17+
18+
operations = [
19+
migrations.CreateModel(
20+
name='Question',
21+
fields=[
22+
('question_no', models.AutoField(primary_key=True, serialize=False)),
23+
('reality_type', models.CharField(choices=[('magic', 'MAGIC'), ('robotics', 'MAGIC'), ('gaming', 'MAGIC'), ('mythology', 'MAGIC')], max_length=450, null=True)),
24+
('question', models.CharField(max_length=450, unique=True)),
25+
('choice1', models.CharField(max_length=450, null=True)),
26+
('choice2', models.CharField(max_length=450, null=True)),
27+
('choice3', models.CharField(max_length=450, null=True)),
28+
('choice4', models.CharField(max_length=450, null=True)),
29+
('correct_choice', models.CharField(max_length=450, null=True)),
30+
],
31+
),
32+
migrations.CreateModel(
33+
name='Userdata',
34+
fields=[
35+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
36+
('bits_id', models.EmailField(max_length=254)),
37+
('score', models.PositiveIntegerField()),
38+
('reality_played', models.CharField(max_length=450, null=True)),
39+
('User', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
40+
],
41+
),
42+
]

0 commit comments

Comments
 (0)