Skip to content

Commit 2d02c91

Browse files
Merge pull request #1987 from NitkarshChourasia/testing
Adding a Awesome GUI calculator.
2 parents cbc6235 + f59cd62 commit 2d02c91

File tree

19 files changed

+831
-0
lines changed

19 files changed

+831
-0
lines changed

nitkarshchourasia/GUI_apps/tkinter_apps/simple_calc_GUI/simple_calculator_GUI.py

Lines changed: 431 additions & 0 deletions
Large diffs are not rendered by default.
197 KB
Loading
Binary file not shown.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env python
2+
"""Django's command-line utility for administrative tasks."""
3+
import os
4+
import sys
5+
6+
7+
def main():
8+
"""Run administrative tasks."""
9+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "todo_site.settings")
10+
try:
11+
from django.core.management import execute_from_command_line
12+
except ImportError as exc:
13+
raise ImportError(
14+
"Couldn't import Django. Are you sure it's installed and "
15+
"available on your PYTHONPATH environment variable? Did you "
16+
"forget to activate a virtual environment?"
17+
) from exc
18+
execute_from_command_line(sys.argv)
19+
20+
21+
if __name__ == "__main__":
22+
main()

nitkarshchourasia/django_projects/ToDo_webapp/todo/__init__.py

Whitespace-only changes.
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 .models import Todo
3+
4+
# Register your models here.
5+
6+
admin.site.register(Todo)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class TodoConfig(AppConfig):
5+
default_auto_field = "django.db.models.BigAutoField"
6+
name = "todo"
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from django import forms
2+
from .models import Todo
3+
4+
5+
class TodoForm(forms.ModelForm):
6+
class Meta:
7+
model = Todo
8+
fields = "__all__"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Generated by Django 4.2.5 on 2023-09-30 16:11
2+
3+
from django.db import migrations, models
4+
import django.utils.timezone
5+
6+
7+
class Migration(migrations.Migration):
8+
initial = True
9+
10+
dependencies = []
11+
12+
operations = [
13+
migrations.CreateModel(
14+
name="Todo",
15+
fields=[
16+
(
17+
"id",
18+
models.BigAutoField(
19+
auto_created=True,
20+
primary_key=True,
21+
serialize=False,
22+
verbose_name="ID",
23+
),
24+
),
25+
("title", models.CharField(max_length=100)),
26+
("details", models.TextField()),
27+
("date", models.DateTimeField(default=django.utils.timezone.now)),
28+
],
29+
),
30+
]

nitkarshchourasia/django_projects/ToDo_webapp/todo/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)