Questions tagged [django-apps]

Django apps are reusable collections of django code that use the ORM layer. They may provide a single model class, or they may implement a full web application, or provide any mixture of such functionality.

Django apps are reusable collections of django code that use the ORM layer. They may provide a single model class, or they may implement a full web application, or provide any mixture of such functionality.

421 questions
182
votes
4 answers

Is there a naming convention for Django apps

Is there a preferred naming convention for creating a Django app consisting of more than one word? For instance, which of the following is preferred? my_django_app my-django-app Update: Not allowed syntactically mydjangoapp Recommended…
Matthew Rankin
  • 457,139
  • 39
  • 126
  • 163
160
votes
7 answers

How to completely uninstall a Django app?

What is the procedure for completely uninstalling a Django app, complete with database removal?
zer0stimulus
  • 22,306
  • 30
  • 110
  • 141
99
votes
32 answers

model not showing up in django admin

I have ceated several django apps and stuffs for my own fun and so far everything has been working fine. Now I just created new project (django 1.2.1) and have run into trouble from 1st moments. I created new app - game and new model Game. I created…
Odif Yltsaeb
  • 5,575
  • 12
  • 49
  • 80
59
votes
9 answers

How to keep all my django applications in specific folder

I have a Django project, let's say "project1". Typical folder structure for applications is: /project1/ /app1/ /app2/ ... __init__.py manage.py settings.py urls.py What should I do if…
ikostia
  • 7,395
  • 6
  • 30
  • 39
52
votes
2 answers

Django: best practice for splitting up project into apps

I'm really struggling with this whole app-idea. I read a lot of tutorials and style guides and I know I should try to create specialized apps, that do exactly one thing. This all makes sense when looking at some simple tutorial project but as soon…
basilikum
  • 10,378
  • 5
  • 45
  • 58
49
votes
21 answers

Ordering admin.ModelAdmin objects in Django Admin

Let's say I have my pizza application with Topping and Pizza classes and they show in Django Admin like this: PizzaApp - Toppings >>>>>>>>>> Add / Change Pizzas >>>>>>>>>> Add / Change But I want them like…
44
votes
5 answers

Sharing models between Django apps

I will be brief: to work in the spirit and idea of a Django app, it is ok for an app to import models from inside another app ? Say, a User statistics app will import models from a User app something like: from users.models import users
Nicu Surdu
  • 8,172
  • 9
  • 68
  • 108
38
votes
2 answers

django-object-permissions Vs django-guardian Vs django-authority

I've found 3 row-level permission solutions for Django 1.2+ django-object-permissions django-guardian django-authority Could someone tell if there is any recommended more than the others, what are their main differences, etc.?
Akasha
  • 2,162
  • 1
  • 29
  • 47
36
votes
10 answers

How to change "app name" in Django admin?

I created 'frontend' application using ./manage.py startproject frontend. But for some reason I just want to change the app name in the Django admin to display 'Your Home Page' instead of 'frontend'. How to do that? Update: Here is the little more…
user4173776
34
votes
6 answers

Django Facebook Connect App Recommendation

I want to implement Facebook connect login for my Django site and I've checked the already existing apps. So far, I have found Django-Socialauth, django-socialregistration, and django-facebookconnect for this purpose. The question is which one to…
Hellnar
  • 62,315
  • 79
  • 204
  • 279
30
votes
9 answers

Cannot import models from another app in Django

so I have 2 apps running in the same project. My files are structured as follows: /project_codebase /project __init.py settings.py urls.py wsgi.py ... /app1 ... /app2 ... …
darkhorse
  • 8,192
  • 21
  • 72
  • 148
29
votes
4 answers

Beginner: Trying to understand how apps interact in Django

I just got done working through the Django tutorials for the second time, and am understanding things much more clearly now. However, I'm still unclear how apps inside a site interact with one another. For example, lets say I'm writing a blog…
crashsystems
  • 175
  • 2
  • 8
  • 15
24
votes
5 answers

Asset managers for Django - choose which one?

I would like to bundle up css and javascript files. I also want to send far-future expire headers to clients, so I need file versioning. A quick search across the Internet has shown there are several asset managers developed for Django. Here is a…
shanyu
  • 9,536
  • 7
  • 60
  • 68
19
votes
1 answer

Django sub-applications & module structure

I am developing a Django application, which is a large system that requires multiple sub-applications to keep things neat. Therefore, I have a top level directory that is a Django app (as it has an empty models.py file), and multiple subdirectories,…
Rob Golding
  • 3,502
  • 5
  • 26
  • 28
19
votes
6 answers

Using django models across apps?

So in my Django project I have a few different apps, each with their own Models, Views, Templates, etc. What is a good way (the "Django" way) to have these Apps communicate? A specific example would be a Meetings App which has a model for Meetings,…
rmontgomery429
  • 14,660
  • 17
  • 61
  • 66
1
2 3
28 29