Revision history of "Create a Django App"

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

  • curprev 19:52, 26 April 2023Bacchas talk contribs 895 bytes +895 Created page with " python manage.py startapp myapp * this will create an new app in the projectname folder * cd into my app folder and create a folder called templates * create an html file in the templates folder * Link the new template folder to the project * edit the settings.py file import os * Scroll down to "TEMPLATES", edit section DIRS 'DIRS': [os.path.join(BASE_DIR, "myapp/templates")] * Edit the views.py in your myapp folder def myview(request): return render(request,..."