Neither seem to work
readme_form.user = request.user
readme_object = readme_form.save()
step_forms.readme_template = readme_object
step_forms.save()
or
readme_form.user = request.user
readme_object = readme_form.save()
step_forms.readme = readme_object
step_forms.
>
> Didn't seem to work. The step_forms is a modelformset_factory, so I don't
> know if that makes a difference. I would also like to assign a user to
> the readme_form, but
>
readme_form.user_id = request.user.id
readme_object = readme_form.save()
step_forms.readm
I am new to Django and am trying to save two objects from the same form.
Models:
class ReadmeTemplate(models.Model):
"""
Represents a bugfix README
Contains step models, which contain multiple steps.
"""
def __unicode__(self):
return self.title
title =
Hello,
I am new to Django and have run into a small problem with my application's
admin page. It displays the full url to the uploaded file, but when I click
on it the link is warped. I have a method to retrieve the file as a
download, and would like to put that there instead of the plain url.
On Tuesday, 9 October 2012 13:46:02 UTC-4, Wnt2bsleepin wrote:
>
> Can you explain why it's bad to use uppercase names in Nix systems? I will
> remake the account if I need to.
> Here is the output of python
>
>
>
> Python 2.4 (#2, Oct 7 2012, 20:19:23)
> [G
Can you explain why it's bad to use uppercase names in Nix systems? I will
remake the account if I need to.
Here is the output of python
Python 2.4 (#2, Oct 7 2012, 20:19:23)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
Type "help", "copyright", "credits" or "license" for more informati
I looked in the log files for apache and it came up with the following.
File "/home/Yourdogsdead/uglstats/uglstats/wsgi.py", line 26, in ?
from django.core.wsgi import get_wsgi_application
ImportError: No module named django.core.wsgi
I am not sure why it's not importing properly.
--
You r
7 matches
Mail list logo