I just got done working through the Djano 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 application (a rather popular activity, apparently). Blog posts and comments tend to go together...
There's already some shipping modules such as FEDEX, Flat Rate, Per pieced and UPS but how can I let the user choose its preferred shipping method and/or price?
For those who don't know, Satchmo is a django app.
...
I can't seem to apply a tax value on the cart total value even though
I :
activated the "By Country/Area" tax module.
added my country/region tax rate.
checked the "Show With tax included" checkbox.
here's attached a screenshot of the on-going problems, I've selected
the areas where something's fishy.
So basically, the cart shows "W...
Django has a very handy pattern known as "apps". Essentially, a self-contained plug-in that requires a minimal amount of wiring, configuring, and glue code to integrate into an existing project. Examples are tagging, comments, contact-form, etc. They let you build up large projects by gathering together a collection of useful apps, ra...
Say for example I have a Blog app that I want to be able to drop into different projects, but I always want the Blog to be associated with some other model. For example, in one case I may want it to be associated with a user:
site.com/someuser/blog
But on another site I want it to be associated with, say, a school:
site.com/someschool...
Can some one please highlight what should be the process of incorporating reusable django app in a project without using setup.py.
Can we simply move app into project directory and start using it?
...
I came across many resources about the difference between Django projects and reusable apps, most prominently the DjangoCon talk, and Pinax Project.
However, being a newbie, writing my own projects and reusable software seems to a bit challenging. I don't quite understand how where models go (and how apps can be flexible and permissive...
I have a client who is an events photographer and they want to be able to sell photos online. The major differences from personal photo apps would be:
Need to upload 100s of photos at a time
Easy ability to tag photos by event name in batches (prior to upload or after)
Integration with PayPal
Does anyone know of an existing app that...
Lets say I have two django apps:
competitions - which will handle competition data
entries - which will handle functionality relating to entering competitors into competitions
In the competitions app I have a model which represents a section of a competition:
class Division(models.Model):
competition = models.ForeignKey(Competit...
I'm working on a project that has several apps, and want to include a news app for news stories.
However, I'd like to link news stories to objects in my custom app, but use an open source news app to run the news.
At the moment I've simply hacked the chosen news app to add in a ForeignKey relationship with my model.
i.e. a widgets app...
I want to use some jquery in my forms and I was hoping to use some ready made solutions - there seem to be a lot of them...
Which django apps would you recommend for this purpose? Which are most popular?
EDIT #1:
Hmmmm... I suppose I didn't put enough effort into my question... I was hoping for more options/clarifications...
There se...
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, and I have a Home App in which I want to display top 5 Meetings on the home page.
Should...
I'm wondering what other people have done as far as navigation and menus with Django. I'm building a site where for each installed application it would generally (but not necessarily always) make sense to have a top level navigation item, with lower depths handled by the apps themselves.
Obviously I could hard code this, or do it dynami...
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 choose, and I would like to hear from other developers who have experience with any of the...
I'm building a CMS and I want to be able to insert "stuff" in arbitrary locations in a document (CMS page).
The "stuff" objects will have generic foreign keys and can be a table generated from a db entry, or it can be an uploaded image or something else.
I've seen that Nathan Borror's django-basic-apps contains a basic-inlines app whi...
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, which are also applications in themselves.
The reason I have laid my application out in ...
I am following this tutorial:
http://docs.djangoproject.com/en/dev/ref/contrib/messages/
but I get this error:
Error: No module named messages
.
And in django/contrib folder effectively there isn't a messages app.
How can I get work message framework ?
...
Say I'm writing a Django app, and all the templates in the app require a certain variable.
The "classic" way to deal with this, afaik, is to write a context processor and add it to TEMPLATE_CONTEXT_PROCESSORS in the settings.py.
My question is, is this the right way to do it, considering that apps are supposed to be "independent" from ...
Hi. Previously I've been using some older version of django-registration which seems to be deprecated now. Because my server does not allow me to install python plugins I need to use 'registration' as separate django application. Now my question is what do I need to modify in order to get registation running as django-app ? Can I just co...
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 solution
While all of them may be options 1 and 3 are syntactically allowed, is there a preference...