How to change “app name” in Django admin?

Yes, you can do it simply in your apps.py file from your app folder change the verbose_name attribute from your config class. For example: from django.apps import AppConfig class FrontendConfig(AppConfig): name=”frontend” verbose_name = “Your Home Page” I test it and works in Django 1.10 UPDATE: In Django 3+ you should add this in your __init__.py … Read more

Ordering admin.ModelAdmin objects in Django Admin

A workaround that you can try is tweaking your models.py as follows: class Topping(models.Model): . . . class Meta: verbose_name_plural = “2. Toppings” class Pizza(models.Model): . . . class Meta: verbose_name_plural = “1. Pizzas” Not sure if it is against the django’s best practices but it works (tested with django trunk). Good luck! PS: sorry … Read more

Sharing models between Django apps

The answer is yes. It’s perfectly okay for one application inside your django project to import models from another application. The power of a django project lies in the apps and their interactions. Also make sure that you have utility applications importing models from more generic applications and not the other way. So “userstatistics” app … Read more

Is there a naming convention for Django apps

They must be valid package names. That rules out 2 (“import my-django-app” would be a syntax error). PEP 8 says: Modules should have short, all-lowercase names. Underscores can be used in the module name if it improves readability. Python packages should also have short, all-lowercase names, although the use of underscores is discouraged. So, 1 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)