Skip to content

Commit 9371441

Browse files
committed
minimal set up
0 parents  commit 9371441

File tree

13 files changed

+286
-0
lines changed

13 files changed

+286
-0
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.bin/
2+
.include/
3+
.lib/
4+
.idea/

Pipfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[[source]]
2+
url = "https://pypi.org/simple"
3+
verify_ssl = true
4+
name = "pypi"
5+
6+
[packages]
7+
# django 5.0.2 is the latest version or more
8+
django = ">=5.0.0"
9+
atlas-provider-django = ">=0.1.6"
10+
11+
[dev-packages]
12+
13+
[requires]
14+
python_version = "3.12"

Pipfile.lock

+199
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/__init__.py

Whitespace-only changes.

test/manage.py

+22
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', 'mysite.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()

test/mysite/__init__.py

Whitespace-only changes.
1.08 KB
Binary file not shown.

test/mysite/models.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from django.db import models
2+
3+
4+
class Question(models.Model):
5+
question_text = models.CharField(max_length=200)
6+
pub_date = models.DateTimeField("date published")
7+
8+
9+
class Choice(models.Model):
10+
question = models.ForeignKey(Question, on_delete=models.CASCADE)
11+
choice_text = models.CharField(max_length=200)
12+
votes = models.IntegerField(default=0)

test/mysite/settings.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
"""
2+
Django settings for mysite project.
3+
4+
Generated by 'django-admin startproject' using Django 5.0.1.
5+
6+
For more information on this file, see
7+
https://docs.djangoproject.com/en/5.0/topics/settings/
8+
9+
For the full list of settings and their values, see
10+
https://docs.djangoproject.com/en/5.0/ref/settings/
11+
"""
12+
13+
14+
INSTALLED_APPS = [
15+
"polls",
16+
"atlas_provider_django",
17+
]

test/polls/__init__.py

Whitespace-only changes.

test/polls/apps.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from django.apps import AppConfig
2+
3+
4+
class PollsConfig(AppConfig):
5+
default_auto_field = 'django.db.models.BigAutoField'
6+
name = 'polls'

test/polls/migrations/__init__.py

Whitespace-only changes.

test/polls/models.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from django.db import models
2+
3+
4+
class Question(models.Model):
5+
question_text = models.CharField(max_length=200)
6+
pub_date = models.DateTimeField("date published")
7+
8+
9+
class Choice(models.Model):
10+
question = models.ForeignKey(Question, on_delete=models.CASCADE)
11+
choice_text = models.CharField(max_length=200)
12+
votes = models.IntegerField(default=0)

0 commit comments

Comments
 (0)