Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pranshu #7

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CCD/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
'student_utilities',
'lifeatiitg',
'home',
'FAQ',
'policies',
]

MIDDLEWARE = [
Expand Down
1 change: 1 addition & 0 deletions FAQ/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 3 additions & 3 deletions contactus/admin.py → FAQ/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.contrib import admin

# Register your models here.
from django.contrib import admin

# Register your models here.
12 changes: 6 additions & 6 deletions contactus/apps.py → FAQ/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.apps import AppConfig


class ContactusConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'contactus'
from django.apps import AppConfig
class FaqConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'FAQ'
22 changes: 22 additions & 0 deletions FAQ/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 3.2 on 2021-05-16 17:09

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='FAQ',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('question', models.CharField(max_length=500)),
('text', models.TextField(max_length=5000)),
],
),
]
6 changes: 6 additions & 0 deletions FAQ/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.db import models

# Create your models here.
class FAQ(models.Model):
question = models.CharField(max_length=500)
text = models.TextField(max_length=5000)
6 changes: 3 additions & 3 deletions student_utilities/tests.py → FAQ/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.test import TestCase

# Create your tests here.
from django.test import TestCase
# Create your tests here.
6 changes: 3 additions & 3 deletions student_utilities/views.py → FAQ/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.shortcuts import render

# Create your views here.
from django.shortcuts import render
# Create your views here.
Empty file removed contactus/__init__.py
Empty file.
Binary file removed contactus/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file removed contactus/__pycache__/admin.cpython-39.pyc
Binary file not shown.
Binary file removed contactus/__pycache__/apps.cpython-39.pyc
Binary file not shown.
Binary file removed contactus/__pycache__/models.cpython-39.pyc
Binary file not shown.
45 changes: 0 additions & 45 deletions contactus/models.py

This file was deleted.

1 change: 1 addition & 0 deletions policies/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

6 changes: 3 additions & 3 deletions student_utilities/admin.py → policies/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.contrib import admin

# Register your models here.
from django.contrib import admin

# Register your models here.
12 changes: 6 additions & 6 deletions student_utilities/apps.py → policies/apps.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.apps import AppConfig


class StudentUtilitiesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'student_utilities'
from django.apps import AppConfig
class PoliciesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'policies'
29 changes: 29 additions & 0 deletions policies/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Generated by Django 3.2 on 2021-05-16 17:09

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='Internship_policy',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('text', models.TextField(max_length=2000)),
],
),
migrations.CreateModel(
name='placement_policy',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('title', models.CharField(max_length=200)),
('text', models.TextField(max_length=5000)),
],
),
]
10 changes: 10 additions & 0 deletions policies/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from django.db import models

# Create your models here.
class Policy(models.Model):
title = models.CharField(max_length=200,default="")
text = models.TextField(max_length=5000)
link= models.URLField(max_length=400,null=True)
file = models.FileField(null=True,upload_to="policies/")


6 changes: 3 additions & 3 deletions contactus/tests.py → policies/tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.test import TestCase

# Create your tests here.
from django.test import TestCase
# Create your tests here.
6 changes: 3 additions & 3 deletions contactus/views.py → policies/views.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from django.shortcuts import render

# Create your views here.
from django.shortcuts import render
# Create your views here.
Empty file removed student_utilities/__init__.py
Empty file.
Binary file removed student_utilities/__pycache__/__init__.cpython-39.pyc
Binary file not shown.
Binary file removed student_utilities/__pycache__/admin.cpython-39.pyc
Binary file not shown.
Binary file removed student_utilities/__pycache__/apps.cpython-39.pyc
Binary file not shown.
Binary file removed student_utilities/__pycache__/models.cpython-39.pyc
Binary file not shown.
10 changes: 0 additions & 10 deletions student_utilities/models.py

This file was deleted.