Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #settings.py
- INSTALLED_APPS = (
- 'frontend',
- )
- #frontend/models.py
- class Newpage(models.Model):
- #field here
- class Oldpage(models.Model):
- #field here
- from django.apps import AppConfig
- class FrontendConfig(AppConfig):
- name = 'frontend'
- verbose_name = "Your Home Page"
- class MyModel(models.Model):
- pass
- class Meta:
- app_label = 'My APP name'
- from django.apps import AppConfig
- class RequestsConfig(AppConfig):
- name = 'stars'
- verbose_name = "Star of India"
- default_app_config = 'stars.apps.RequestsConfig'
- model._meta.app_config.verbose_name
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement