Django CMS 3.0.x Documentationapplication is now available directly from the new django CMS page. (Apphooks won’t take effect until the server has restarted, though this is not generally an issue on the runserver, which can handle this automatically 1. Tutorials 17 django cms Documentation, Release 3.0.19.dev1 python manage.py migrate Start the server again. The blog application comes with a django CMS apphook, so add a new django CMS page, and add blog application to it as you did for Polls in the previous tutorial. You may need to restart your server at this point. Publish the new page, and you should find the blog application at work there. You0 码力 | 180 页 | 1.56 MB | 6 月前3
django cms 3.1.x Documentationapplication is now available directly from the new django CMS page. (Apphooks won’t take effect until the server has restarted, though this is not generally an issue on the runserver, which can handle this automatically Tutorials 17 django cms Documentation, Release 3.1.8.dev1 python manage.py migrate Start the server again. The newsblog application comes with a django CMS apphook, so add a new django CMS page (let’s the new page, and you should find the blog application at work there. You may need to restart your server at this point. You can add new blog posts using the admin, but also have a look at the toolbar.0 码力 | 200 页 | 1.63 MB | 1 年前3
Django 4.2.x DocumentationDjango Verifying That’s it! Writing your first Django app, part 1 Creating a project The development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup by the users who created them? My admin-site CSS and images showed up fine using the development server, but they’re not displaying when using mod_wsgi. My “list_filter” contains a ManyToManyField, but putting code under the web server’s document root (in a place such as /var/www). With Django, you don’t do that. It’s not a good idea to put any of this Python code within your web server’s document root, because0 码力 | 3305 页 | 3.16 MB | 1 年前3
django cms 3.3.x Documentationnecessary because we have created a new file containing Python code that won’t be loaded until the server restarts. You only have to do this the first time the new file has been created. Apply the apphook We’ve added a new application so we need to update our database: python manage.py migrate Start the server again. Create a new apphooked page The News & Blog application comes with a django CMS apphook creation Using an apphook Apphook management Apphook menus Apphook permissions Automatically restart server on apphook changes Apphooks and placeholder template tags Complex apphook configuration Attaching0 码力 | 386 页 | 1.56 MB | 1 年前3
Django 2.2.x DocumentationDjango Verifying That’s it! Writing your first Django app, part 1 Creating a project The development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup by the users who created them? My admin-site CSS and images showed up fine using the development server, but they’re not displaying when using mod_wsgi. My “list_filter” contains a ManyToManyField, but putting code under the Web server’s document root (in a place such as /var/www). With Django, you don’t do that. It’s not a good idea to put any of this Python code within your Web server’s document root, because0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 2.1.x Documentationputting code under the Web server’s document root (in a place such as /var/www). With Django, you don’t do that. It’s not a good idea to put any of this Python code within your Web server’s document root, because servers to serve your project. See How to deploy with WSGI for more details. 2.3.2 The development server Let’s verify your Django project works. Change into the outer mysite directory, if you haven’t already 15:50:53 Django version 2.1, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Note: Ignore the warning about unapplied database migrations0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 3.2.x Documentationputting code under the Web server’s document root (in a place such as /var/www). With Django, you don’t do that. It’s not a good idea to put any of this Python code within your Web server’s document root, because servers to serve your project. See How to deploy with WSGI for more details. 2.3.2 The development server Let’s verify your Django project works. Change into the outer mysite directory, if you haven’t already 15:50:53 Django version 3.2, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Note: Ignore the warning about unapplied database migrations0 码力 | 2199 页 | 7.89 MB | 1 年前3
Django 4.0.x Documentationputting code under the web server’s document root (in a place such as /var/www). With Django, you don’t do that. It’s not a good idea to put any of this Python code within your web server’s document root, because servers to serve your project. See How to deploy with WSGI for more details. 2.3.2 The development server Let’s verify your Django project works. Change into the outer mysite directory, if you haven’t already 15:50:53 Django version 4.0, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C. Note: Ignore the warning about unapplied database migrations0 码力 | 2248 页 | 7.90 MB | 1 年前3
Django 4.1.x DocumentationDjango Verifying That’s it! Writing your first Django app, part 1 Creating a project The development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup by the users who created them? My admin-site CSS and images showed up fine using the development server, but they’re not displaying when using mod_wsgi. My “list_filter” contains a ManyToManyField, but putting code under the web server’s document root (in a place such as /var/www). With Django, you don’t do that. It’s not a good idea to put any of this Python code within your web server’s document root, because0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 2.1.x DocumentationDjango Verifying That’s it! Writing your first Django app, part 1 Creating a project The development server Creating the Polls app Write your first view Writing your first Django app, part 2 Database setup by the users who created them? My admin-site CSS and images showed up fine using the development server, but they’re not displaying when using mod_wsgi. My “list_filter” contains a ManyToManyField, but putting code under the Web server’s document root (in a place such as /var/www). With Django, you don’t do that. It’s not a good idea to put any of this Python code within your Web server’s document root, because0 码力 | 2790 页 | 2.71 MB | 1 年前3
共 93 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













