Spaces:
Runtime error
Runtime error
Upload 85 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- Dockerfile +7 -0
- manage.py +21 -0
- registration/__init__.py +0 -0
- registration/__pycache__/__init__.cpython-310.pyc +0 -0
- registration/__pycache__/__init__.cpython-311.pyc +0 -0
- registration/__pycache__/__init__.cpython-312.pyc +0 -0
- registration/__pycache__/__init__.cpython-313.pyc +0 -0
- registration/__pycache__/admin.cpython-310.pyc +0 -0
- registration/__pycache__/admin.cpython-311.pyc +0 -0
- registration/__pycache__/admin.cpython-312.pyc +0 -0
- registration/__pycache__/admin.cpython-313.pyc +0 -0
- registration/__pycache__/apps.cpython-310.pyc +0 -0
- registration/__pycache__/apps.cpython-311.pyc +0 -0
- registration/__pycache__/apps.cpython-312.pyc +0 -0
- registration/__pycache__/apps.cpython-313.pyc +0 -0
- registration/__pycache__/models.cpython-310.pyc +0 -0
- registration/__pycache__/models.cpython-311.pyc +0 -0
- registration/__pycache__/models.cpython-312.pyc +0 -0
- registration/__pycache__/models.cpython-313.pyc +0 -0
- registration/__pycache__/urls.cpython-310.pyc +0 -0
- registration/__pycache__/urls.cpython-311.pyc +0 -0
- registration/__pycache__/urls.cpython-312.pyc +0 -0
- registration/__pycache__/urls.cpython-313.pyc +0 -0
- registration/__pycache__/views.cpython-310.pyc +0 -0
- registration/__pycache__/views.cpython-311.pyc +0 -0
- registration/__pycache__/views.cpython-312.pyc +0 -0
- registration/__pycache__/views.cpython-313.pyc +0 -0
- registration/admin.py +3 -0
- registration/apps.py +6 -0
- registration/migrations/0001_initial.py +36 -0
- registration/migrations/0002_registration_game.py +19 -0
- registration/migrations/0003_alter_game_gender.py +18 -0
- registration/migrations/0004_alter_registration_enrollment.py +18 -0
- registration/migrations/0005_alter_registration_email.py +18 -0
- registration/migrations/__init__.py +0 -0
- registration/migrations/__pycache__/0001_initial.cpython-310.pyc +0 -0
- registration/migrations/__pycache__/0001_initial.cpython-311.pyc +0 -0
- registration/migrations/__pycache__/0001_initial.cpython-312.pyc +0 -0
- registration/migrations/__pycache__/0001_initial.cpython-313.pyc +0 -0
- registration/migrations/__pycache__/0002_registration_game.cpython-310.pyc +0 -0
- registration/migrations/__pycache__/0002_registration_game.cpython-311.pyc +0 -0
- registration/migrations/__pycache__/0002_registration_game.cpython-312.pyc +0 -0
- registration/migrations/__pycache__/0002_registration_game.cpython-313.pyc +0 -0
- registration/migrations/__pycache__/0003_alter_game_gender.cpython-310.pyc +0 -0
- registration/migrations/__pycache__/0003_alter_game_gender.cpython-311.pyc +0 -0
- registration/migrations/__pycache__/0003_alter_game_gender.cpython-312.pyc +0 -0
- registration/migrations/__pycache__/0003_alter_game_gender.cpython-313.pyc +0 -0
- registration/migrations/__pycache__/0004_alter_registration_enrollment.cpython-310.pyc +0 -0
- registration/migrations/__pycache__/0004_alter_registration_enrollment.cpython-311.pyc +0 -0
- registration/migrations/__pycache__/0004_alter_registration_enrollment.cpython-312.pyc +0 -0
Dockerfile
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3
|
2 |
+
WORKDIR /usr/src/app
|
3 |
+
COPY requirements.txt ./
|
4 |
+
RUN pip install -r requirements.txt
|
5 |
+
COPY . .
|
6 |
+
EXPOSE 7860
|
7 |
+
CMD ["python","./app.py","runserver","0.0.0.0:7860"]
|
manage.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python
|
2 |
+
"""Django's command-line utility for administrative tasks."""
|
3 |
+
import os
|
4 |
+
import sys
|
5 |
+
|
6 |
+
def main():
|
7 |
+
"""Run administrative tasks."""
|
8 |
+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sports_portal.settings')
|
9 |
+
try:
|
10 |
+
from django.core.management import execute_from_command_line
|
11 |
+
except ImportError as exc:
|
12 |
+
raise ImportError(
|
13 |
+
"Couldn't import Django. Are you sure it's installed and "
|
14 |
+
"available on your PYTHONPATH environment variable? Did you "
|
15 |
+
"forget to activate a virtual environment?"
|
16 |
+
) from exc
|
17 |
+
execute_from_command_line(sys.argv)
|
18 |
+
|
19 |
+
|
20 |
+
if __name__ == '__main__':
|
21 |
+
main()
|
registration/__init__.py
ADDED
File without changes
|
registration/__pycache__/__init__.cpython-310.pyc
ADDED
Binary file (162 Bytes). View file
|
|
registration/__pycache__/__init__.cpython-311.pyc
ADDED
Binary file (236 Bytes). View file
|
|
registration/__pycache__/__init__.cpython-312.pyc
ADDED
Binary file (210 Bytes). View file
|
|
registration/__pycache__/__init__.cpython-313.pyc
ADDED
Binary file (153 Bytes). View file
|
|
registration/__pycache__/admin.cpython-310.pyc
ADDED
Binary file (203 Bytes). View file
|
|
registration/__pycache__/admin.cpython-311.pyc
ADDED
Binary file (291 Bytes). View file
|
|
registration/__pycache__/admin.cpython-312.pyc
ADDED
Binary file (254 Bytes). View file
|
|
registration/__pycache__/admin.cpython-313.pyc
ADDED
Binary file (197 Bytes). View file
|
|
registration/__pycache__/apps.cpython-310.pyc
ADDED
Binary file (453 Bytes). View file
|
|
registration/__pycache__/apps.cpython-311.pyc
ADDED
Binary file (619 Bytes). View file
|
|
registration/__pycache__/apps.cpython-312.pyc
ADDED
Binary file (528 Bytes). View file
|
|
registration/__pycache__/apps.cpython-313.pyc
ADDED
Binary file (529 Bytes). View file
|
|
registration/__pycache__/models.cpython-310.pyc
ADDED
Binary file (1.29 kB). View file
|
|
registration/__pycache__/models.cpython-311.pyc
ADDED
Binary file (2.1 kB). View file
|
|
registration/__pycache__/models.cpython-312.pyc
ADDED
Binary file (2.03 kB). View file
|
|
registration/__pycache__/models.cpython-313.pyc
ADDED
Binary file (1.99 kB). View file
|
|
registration/__pycache__/urls.cpython-310.pyc
ADDED
Binary file (494 Bytes). View file
|
|
registration/__pycache__/urls.cpython-311.pyc
ADDED
Binary file (778 Bytes). View file
|
|
registration/__pycache__/urls.cpython-312.pyc
ADDED
Binary file (722 Bytes). View file
|
|
registration/__pycache__/urls.cpython-313.pyc
ADDED
Binary file (641 Bytes). View file
|
|
registration/__pycache__/views.cpython-310.pyc
ADDED
Binary file (3.41 kB). View file
|
|
registration/__pycache__/views.cpython-311.pyc
ADDED
Binary file (6.7 kB). View file
|
|
registration/__pycache__/views.cpython-312.pyc
ADDED
Binary file (6 kB). View file
|
|
registration/__pycache__/views.cpython-313.pyc
ADDED
Binary file (5.85 kB). View file
|
|
registration/admin.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
from django.contrib import admin
|
2 |
+
|
3 |
+
# Register your models here.
|
registration/apps.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from django.apps import AppConfig
|
2 |
+
|
3 |
+
|
4 |
+
class RegistrationConfig(AppConfig):
|
5 |
+
default_auto_field = 'django.db.models.BigAutoField'
|
6 |
+
name = 'registration'
|
registration/migrations/0001_initial.py
ADDED
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Generated by Django 5.1.4 on 2025-01-29 18:24
|
2 |
+
|
3 |
+
from django.db import migrations, models
|
4 |
+
|
5 |
+
|
6 |
+
class Migration(migrations.Migration):
|
7 |
+
|
8 |
+
initial = True
|
9 |
+
|
10 |
+
dependencies = [
|
11 |
+
]
|
12 |
+
|
13 |
+
operations = [
|
14 |
+
migrations.CreateModel(
|
15 |
+
name='Game',
|
16 |
+
fields=[
|
17 |
+
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
18 |
+
('name', models.CharField(max_length=100)),
|
19 |
+
('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], max_length=1)),
|
20 |
+
],
|
21 |
+
),
|
22 |
+
migrations.CreateModel(
|
23 |
+
name='Registration',
|
24 |
+
fields=[
|
25 |
+
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
26 |
+
('name', models.CharField(max_length=100)),
|
27 |
+
('email', models.EmailField(max_length=254, unique=True)),
|
28 |
+
('enrollment', models.CharField(max_length=50, unique=True)),
|
29 |
+
('age', models.IntegerField()),
|
30 |
+
('gender', models.CharField(choices=[('Male', 'Male'), ('Female', 'Female')], max_length=10)),
|
31 |
+
('department', models.CharField(max_length=100)),
|
32 |
+
('semester', models.IntegerField()),
|
33 |
+
('registration_date', models.DateTimeField(auto_now_add=True)),
|
34 |
+
],
|
35 |
+
),
|
36 |
+
]
|
registration/migrations/0002_registration_game.py
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Generated by Django 5.1.4 on 2025-01-30 02:17
|
2 |
+
|
3 |
+
import django.db.models.deletion
|
4 |
+
from django.db import migrations, models
|
5 |
+
|
6 |
+
|
7 |
+
class Migration(migrations.Migration):
|
8 |
+
|
9 |
+
dependencies = [
|
10 |
+
('registration', '0001_initial'),
|
11 |
+
]
|
12 |
+
|
13 |
+
operations = [
|
14 |
+
migrations.AddField(
|
15 |
+
model_name='registration',
|
16 |
+
name='game',
|
17 |
+
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='registration.game'),
|
18 |
+
),
|
19 |
+
]
|
registration/migrations/0003_alter_game_gender.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Generated by Django 4.2.3 on 2025-01-31 03:39
|
2 |
+
|
3 |
+
from django.db import migrations, models
|
4 |
+
|
5 |
+
|
6 |
+
class Migration(migrations.Migration):
|
7 |
+
|
8 |
+
dependencies = [
|
9 |
+
('registration', '0002_registration_game'),
|
10 |
+
]
|
11 |
+
|
12 |
+
operations = [
|
13 |
+
migrations.AlterField(
|
14 |
+
model_name='game',
|
15 |
+
name='gender',
|
16 |
+
field=models.CharField(choices=[('Male', 'Male'), ('Female', 'Female')], max_length=10),
|
17 |
+
),
|
18 |
+
]
|
registration/migrations/0004_alter_registration_enrollment.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Generated by Django 4.2.3 on 2025-01-31 09:58
|
2 |
+
|
3 |
+
from django.db import migrations, models
|
4 |
+
|
5 |
+
|
6 |
+
class Migration(migrations.Migration):
|
7 |
+
|
8 |
+
dependencies = [
|
9 |
+
('registration', '0003_alter_game_gender'),
|
10 |
+
]
|
11 |
+
|
12 |
+
operations = [
|
13 |
+
migrations.AlterField(
|
14 |
+
model_name='registration',
|
15 |
+
name='enrollment',
|
16 |
+
field=models.CharField(max_length=50),
|
17 |
+
),
|
18 |
+
]
|
registration/migrations/0005_alter_registration_email.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Generated by Django 4.2.3 on 2025-01-31 10:00
|
2 |
+
|
3 |
+
from django.db import migrations, models
|
4 |
+
|
5 |
+
|
6 |
+
class Migration(migrations.Migration):
|
7 |
+
|
8 |
+
dependencies = [
|
9 |
+
('registration', '0004_alter_registration_enrollment'),
|
10 |
+
]
|
11 |
+
|
12 |
+
operations = [
|
13 |
+
migrations.AlterField(
|
14 |
+
model_name='registration',
|
15 |
+
name='email',
|
16 |
+
field=models.EmailField(max_length=254),
|
17 |
+
),
|
18 |
+
]
|
registration/migrations/__init__.py
ADDED
File without changes
|
registration/migrations/__pycache__/0001_initial.cpython-310.pyc
ADDED
Binary file (1.1 kB). View file
|
|
registration/migrations/__pycache__/0001_initial.cpython-311.pyc
ADDED
Binary file (1.96 kB). View file
|
|
registration/migrations/__pycache__/0001_initial.cpython-312.pyc
ADDED
Binary file (1.89 kB). View file
|
|
registration/migrations/__pycache__/0001_initial.cpython-313.pyc
ADDED
Binary file (1.77 kB). View file
|
|
registration/migrations/__pycache__/0002_registration_game.cpython-310.pyc
ADDED
Binary file (717 Bytes). View file
|
|
registration/migrations/__pycache__/0002_registration_game.cpython-311.pyc
ADDED
Binary file (1.05 kB). View file
|
|
registration/migrations/__pycache__/0002_registration_game.cpython-312.pyc
ADDED
Binary file (1.01 kB). View file
|
|
registration/migrations/__pycache__/0002_registration_game.cpython-313.pyc
ADDED
Binary file (991 Bytes). View file
|
|
registration/migrations/__pycache__/0003_alter_game_gender.cpython-310.pyc
ADDED
Binary file (658 Bytes). View file
|
|
registration/migrations/__pycache__/0003_alter_game_gender.cpython-311.pyc
ADDED
Binary file (943 Bytes). View file
|
|
registration/migrations/__pycache__/0003_alter_game_gender.cpython-312.pyc
ADDED
Binary file (857 Bytes). View file
|
|
registration/migrations/__pycache__/0003_alter_game_gender.cpython-313.pyc
ADDED
Binary file (842 Bytes). View file
|
|
registration/migrations/__pycache__/0004_alter_registration_enrollment.cpython-310.pyc
ADDED
Binary file (630 Bytes). View file
|
|
registration/migrations/__pycache__/0004_alter_registration_enrollment.cpython-311.pyc
ADDED
Binary file (905 Bytes). View file
|
|
registration/migrations/__pycache__/0004_alter_registration_enrollment.cpython-312.pyc
ADDED
Binary file (819 Bytes). View file
|
|