On Oct 12, 2014, at 10:01 PM, dk wrote:
> I have this 2 models
>
> class Choice(models.Model):
> restaurant = models.ForeignKey(Restaurant)
> person = models.ForeignKey(Person)
> date = models.DateField("time published")
> time = models.TimeField("date published")
>
> class Pers
I have this 2 models
class Choice(models.Model):
restaurant = models.ForeignKey(Restaurant)
person = models.ForeignKey(Person)
date = models.DateField("time published")
time = models.TimeField("date published")
class Person(models.Model):
name = models.CharField(max_length=100
I am storing the information in the database like this.
class Choice(models.Model):
restaurant = models.ForeignKey(Restaurant)
person = models.ForeignKey(Person)
date = models.DateField("time published")
time = models.TimeField("date published")
that way I can get the person and
Hi,
For Brackets users, here a small extension:
https://github.com/abdelouahabb/django-brackets
CodeMirror already supports django, but i dont know why they dident added
it to Brackets, so with the extension it will be possible.
Good templating :)
--
You received this message because you are sub
in your class where you defined your 'private' link, you just redirects him
everytime he clicks on it, or you make and if-else that is bound to the IP
of the admin, so everytime the user clicks on it, he gets a 404 thinking
that the link dont exist, else, the admin gets the right page.
Le vendr
after:
os.environ.setdefault(
add:
import django
django.setup()
try that, let us know!
~mike
On Sun, Oct 12, 2014 at 9:48 AM, Luca Trifilio wrote:
> I'm struggling by trying to make things work after upgrading the Django
> version from 1.6.7 to 1.7. It looks like I'm not able to focus
I get the error:
'CreateFlow' object has no attribute 'user'
How do I get the id of the record just created?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to dja
I'm struggling by trying to make things work after upgrading the Django
version from 1.6.7 to 1.7. It looks like I'm not able to focus on the right
matter. I try to resume the situation so far.
Thing is: if I leave the command django.setup() in my wsgi.py file, when I
try to access my website
8 matches
Mail list logo