Felhasználói eszközök

Eszközök a webhelyen


django

Különbségek

A kiválasztott változat és az aktuális verzió közötti különbségek a következők.

Összehasonlító nézet linkje

Előző változat mindkét oldalonElőző változat
Következő változat
Előző változat
django [2022/02/18 08:20] daevidtdjango [2022/02/21 13:23] (aktuális) daevidt
Sor 8: Sor 8:
      
 === Re-generate migration === === Re-generate migration ===
-To merge exist migration files into one file:+To merge existing migration files into one file:
  
- * Remove django_migration records table (manually) +  * Remove django_migration records table (manually) 
- * Remove all migration files +  * Remove all migration files 
- * run ''python manage.py migrate --fake'' command +  * run ''python manage.py migrate --fake'' command 
- * run ''python manage.py makemigrations'' command +  * run ''python manage.py makemigrations'' command 
- * run ''python manage.py migrate --fake-initial'' command +  * run ''python manage.py migrate --fake-initial'' command 
- * run ''python manage.py migrate contenttypes'' command+  * run ''python manage.py migrate contenttypes'' command
  
 and finally, for chacking if everything is just fine, run ''python manage.py migrate'' command. and finally, for chacking if everything is just fine, run ''python manage.py migrate'' command.
  
 Now, check django_migration table and make sure all new files added in this table Now, check django_migration table and make sure all new files added in this table
 +
 +=== How to rename "Django Administration" ===
 +
 +In urls.py you can override the 3 most important variables:
 +
 +<code python>
 +from django.contrib import admin
 +
 +admin.site.site_header = 'My project'                    # default: "Django Administration"
 +admin.site.index_title = 'Features area'                 # default: "Site administration"
 +admin.site.site_title = 'HTML title from adminsitration' # default: "Django site admin"
 +</code>
django.1645172400.txt.gz · Utolsó módosítás: 2022/02/18 08:20 szerkesztette: daevidt