Commit b0829061 authored by Ramon Angelo Enriquez's avatar Ramon Angelo Enriquez

Deleted widgetsproject/homepage/__pycache__/__init__.cpython-39.pyc,...

Deleted widgetsproject/homepage/__pycache__/__init__.cpython-39.pyc, widgetsproject/homepage/__pycache__/urls.cpython-39.pyc, widgetsproject/homepage/__pycache__/views.cpython-39.pyc, widgetsproject/homepage/migrations/__init__.py, widgetsproject/homepage/__init__.py, widgetsproject/homepage/admin.py, widgetsproject/homepage/apps.py, widgetsproject/homepage/models.py, widgetsproject/homepage/tests.py, widgetsproject/homepage/urls.py, widgetsproject/homepage/views.py, widgetsproject/db.sqlite3, widgetsproject/manage.py files
parent 34c7953e
Pipeline #2264 canceled with stages
from django.contrib import admin
# Register your models here.
from django.apps import AppConfig
class HomepageConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Homepage'
from django.db import models
# Create your models here.
from django.test import TestCase
# Create your tests here.
from django.urls import path
from . import views
urlpatterns = [
path("", views.index, name="homepage")
]
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("Welcome to Widget!")
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'widgetsproject.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are you sure it's installed and "
"available on your PYTHONPATH environment variable? Did you "
"forget to activate a virtual environment?"
) from exc
execute_from_command_line(sys.argv)
if __name__ == '__main__':
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment