Optimisation Model
Hi everyone,
I'm working on the optimization of the model of my app. The goal is to
limit the request to the database.
In this webapp every user can follow users (like twitter), and when
someone you follow publish an article, each followers reveive a mail.
I'm wondering what is
Hi,
First of all, apologize me for my poor, poor english.
I m new with django and i m stuck with a odd thing.
I created a login form and use the default django login handlet like
this :
base.html :
(...) {% if user.is_authenticated %}
{{user.use
Hi dear django users :)
I m facing a stupid problem.
Here is my models.py :
class Video(models.Model):
(...)
category = models.ForeignKey('Category')
(...)
class Category(models.Model):
name = models.CharField(max_length=250)
I'm trying in a tags to make a group by on the categor
Hi,
I'm wondering if like in play or symfony you can develop special
method for each class/table in the models.py and use them in your
template.
I'm trying few things but it didn't work.
For exemple this is my models.py :
class Category(models.Model):
name = models.CharField(max_length=250)
Hello everyone,
I'm trying to add comment to a custom object (here Article).
This is my forms.py :
from django import forms
from django.contrib.auth.models import User
from myApp.models import Article
class CommentForms (forms.Form):
cf_comment = forms.CharField()
cf_writer = forms.User(
5 matches
Mail list logo