Should I override/overload the init function in my ApprovalForm class?
Am I misusing the ModelForm constructor?
On Jan 19, 2:27 pm, "tom.s.macken...@gmail.com"
wrote:
> I want to create a form based on a model and inject data into it
> manually. See below for implementation.
&g
I want to create a form based on a model and inject data into it
manually. See below for implementation.
class Approval(models.Model):
company = models.ForeignKey(Company)
product = models.ForeignKey(Product)
approval_type = models.ForeignKey(Approval_Type, help_text='How
I dont believe I missed this...
It wasnt showing because the browser was interpreting it as a html
tag..
haha. nm.
On Jan 3, 11:52 am, "tom.s.macken...@gmail.com"
wrote:
> Hello,
>
> I am trying incorporateFormMediain my forms and I'm having some
> trouble interpret
Hello,
I am trying incorporate Form Media in my forms and I'm having some
trouble interpreting how this is done via,
http://docs.djangoproject.com/en/dev/topics/forms/media/
My goal is to use the admin/media/css/form.css in my template.
Here is my form:
class ApprovalForm(ModelForm):
clas
Thanks Rajesh! it works!
On Dec 23, 10:47 am, Rajesh Dhawan wrote:
> On Dec 23, 10:38 am, "tom.s.macken...@gmail.com"
>
>
>
> wrote:
> > Hello,
>
> > I am having some trouble serving static files with the development
> > server. I have read th
Sorry...
ADMIN_MEDIA_PREFIX=/media/admin/
On Dec 23, 9:38 am, "tom.s.macken...@gmail.com"
wrote:
> Hello,
>
> I am having some trouble serving static files with the development
> server. I have read the docs and various blogs out there and nothing
> seems to work.
Hello,
I am having some trouble serving static files with the development
server. I have read the docs and various blogs out there and nothing
seems to work. I am going nuts over this :) I have tried tweaking the
values in my settings.py but I reverted them back to their defaults.
Below is the in
Works!! thanks.
I added the following into my view.
from django.template import RequestContext
Then used the render_to_response optional third arg.
Much appreciated!
On Nov 11, 4:30 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> no. i will give that a try.
>
> On Nov 11, 2:54 pm, "Alex Ko
no. i will give that a try.
On Nov 11, 2:54 pm, "Alex Koshelev" <[EMAIL PROTECTED]> wrote:
> Do you use RequestContext [1] in your views?
>
> [1]:http://docs.djangoproject.com/en/dev/ref/templates/api/#id1
>
> On Tue, Nov 11, 2008 at 23:43, [EMAIL PROTECTED] <
>
> [EMAIL PROTECTED]> wrote:
>
> >
Hello,
I am having issues acquiring the user context from templates other
than the template I specify with the following in my urls.py
(r'^login/$', 'django.contrib.auth.views.login', {'template_name':
'foods/login.html'}),
I use the following in my base.html to display the username once a
user
10 matches
Mail list logo