<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.r512.com/index.php?action=history&amp;feed=atom&amp;title=Create_a_Django_App</id>
	<title>Create a Django App - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.r512.com/index.php?action=history&amp;feed=atom&amp;title=Create_a_Django_App"/>
	<link rel="alternate" type="text/html" href="https://www.r512.com/index.php?title=Create_a_Django_App&amp;action=history"/>
	<updated>2026-05-01T07:02:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>https://www.r512.com/index.php?title=Create_a_Django_App&amp;diff=2667&amp;oldid=prev</id>
		<title>Bacchas: Created page with &quot; 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 &quot;TEMPLATES&quot;, edit section DIRS  &#039;DIRS&#039;: [os.path.join(BASE_DIR, &quot;myapp/templates&quot;)]   * Edit the views.py in your myapp folder  def myview(request):     return render(request,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.r512.com/index.php?title=Create_a_Django_App&amp;diff=2667&amp;oldid=prev"/>
		<updated>2023-04-26T19:52:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; 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 &amp;quot;TEMPLATES&amp;quot;, edit section DIRS  &amp;#039;DIRS&amp;#039;: [os.path.join(BASE_DIR, &amp;quot;myapp/templates&amp;quot;)]   * Edit the views.py in your myapp folder  def myview(request):     return render(request,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; python manage.py startapp myapp&lt;br /&gt;
* this will create an new app in the projectname folder&lt;br /&gt;
&lt;br /&gt;
* cd into my app folder and create a folder called templates&lt;br /&gt;
* create an html file in the templates folder&lt;br /&gt;
* Link the new template folder to the project&lt;br /&gt;
* edit the settings.py file&lt;br /&gt;
 import os&lt;br /&gt;
&lt;br /&gt;
* Scroll down to &amp;quot;TEMPLATES&amp;quot;, edit section DIRS&lt;br /&gt;
 &amp;#039;DIRS&amp;#039;: [os.path.join(BASE_DIR, &amp;quot;myapp/templates&amp;quot;)]&lt;br /&gt;
 &lt;br /&gt;
* Edit the views.py in your myapp folder&lt;br /&gt;
 def myview(request):&lt;br /&gt;
    return render(request, &amp;quot;index.html&amp;quot;)&lt;br /&gt;
* create a route file called urls.py&lt;br /&gt;
 from django.urls import path&lt;br /&gt;
 from . import views&lt;br /&gt;
 urlpatterns = [&lt;br /&gt;
    path(&amp;#039;myview/&amp;#039;, views.myview)&lt;br /&gt;
 ]&lt;br /&gt;
*There is also a urls.py in the folder with settings&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
from django.contrib import admin&lt;br /&gt;
from django.urls import path, include &lt;br /&gt;
&lt;br /&gt;
urlpatterns = [&lt;br /&gt;
    path(&amp;#039;myapp/&amp;#039;,include(&amp;#039;myapp.urls&amp;#039;)),&lt;br /&gt;
    path(&amp;#039;admin/&amp;#039;, admin.site.urls),&lt;br /&gt;
]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===[[Django| Category]]===&lt;/div&gt;</summary>
		<author><name>Bacchas</name></author>
	</entry>
</feed>