Hi,
that is because django tries to resolve this url, which is not possible and
also probably not wanted.
IMHO you have to use an extra subdomain. - e.g.
phpmyadmin.ec2-xx-xxx-xx-x.cumpute-1.amazon… - to deliver such kind of content.
It has to be handled beyond the wsgi.
BTW:
http://stackove
Am 06.04.2013 um 16:30 schrieb Shawn Milochik:
> I've seen some situations where it looked like signals are received multiple
> times.
>
> However, you can easily fix that by checking for the existence of the user in
> your function, or a try/except that handles the integrity error.
or by usa
Hi,
I am creating a widget for one of our projects for the first time. The
script file used calls a python file in cgi-bin/widget.py
Is there a way I can access models of a particular project in widget.py
using import ?
say : from django.*projectname.appname.models* import *
I tried relocating
You can use the label attribute on your form fields to override the
default labels:
dn = forms.CharField(label="dn")
cv = forms.CharField(label="cv")
-- Ben
On 4/7/2013 10:11 PM, lx wrote:
hi, I'm using the forms,and*the code is:*
from django import forms
class dcForm(forms.Form):
""
hi, I'm using the forms,and* the code is:*
from django import forms
class dcForm(forms.Form):
"""
"""
TOPIC_CHOICES = ( ('cnccdn', 'cnccdn.com'), ('lxcdns', 'lxcdns.com'),
('wscdns', 'wscdns.com'),)
dnssystem = forms.ChoiceField(choices=TOPIC_CHOICES)
dn = f
Thank you.
I tried your first suggestion and it works great.
Thanks so much for your help.
On Sunday, April 7, 2013 9:22:08 PM UTC-4, Drew Ferguson wrote:
>
> On Sun, 7 Apr 2013 18:15:32 -0700 (PDT)
> frocco > wrote:
>
> > Thanks Drew,
> >
> > I am trying your second suggestion.
> >
> > Bu
On Sun, 7 Apr 2013 18:15:32 -0700 (PDT)
frocco wrote:
> Thanks Drew,
>
> I am trying your second suggestion.
>
> But it is complaining not found for UserProfile
>
> On Sunday, April 7, 2013 8:41:46 PM UTC-4, Drew Ferguson wrote:
> >
> > On Sun, 7 Apr 2013 17:01:52 -0700 (PDT)
> > frocco > wro
Thanks Drew,
I am trying your second suggestion.
But it is complaining not found for UserProfile
On Sunday, April 7, 2013 8:41:46 PM UTC-4, Drew Ferguson wrote:
>
> On Sun, 7 Apr 2013 17:01:52 -0700 (PDT)
> frocco > wrote:
>
> > I have a model that references User and on the admin page, it sho
On Sun, 7 Apr 2013 17:01:52 -0700 (PDT)
frocco wrote:
> I have a model that references User and on the admin page, it shows the
> user name.
> I have the User tied to a UserProfile model that has a field called
> company.
>
> I want the drop down on my Pricing Model to show company, not user.
>
Here is my Pricing model:
in my settings.py I have AUTH_PROFILE_MODULE = 'userprofile'
class Pricing(models.Model):
name = models.CharField(max_length=255, unique=False, default='Special
Pricing',
help_text='You do not have to change this')
user = models.Foreig
I have a model that references User and on the admin page, it shows the
user name.
I have the User tied to a UserProfile model that has a field called company.
I want the drop down on my Pricing Model to show company, not user.
user = models.ForeignKey(User)
--
You received this message becaus
Problem solved! Thanks!
On Saturday, April 6, 2013 11:22:58 PM UTC+2, Hylda wrote:
>
> Hi all,
>
> After I switch to apache, I cannot run myphpadmin. I wonder how I can vist
> them simultaneously or stop django admin? Thanks so much!
>
> run sudo yum install mod_wsgi to install the apache and th
Al 07/04/13 22:50, En/na Johannes ha escrit:
yea, my knowledge from python is like larry and you told, the pyc-files
get rebuild if the timestamp of the py and pyc files differs.
But, because in my case it seems to be handled different, I wondered if
django handles this in another way.
I'm not
Hey,
it would be nice to have some more details about the error or problem
you have.
bg,
Johannes
On 07.04.2013 22:40, Martin Charles wrote:
> What is wrong with my code? I cant find this annoying problem.
>
> Here is a gist:
> https://gist.github.com/caffinatedmonkey/f2283756b3913aea4894
>
> T
yea, my knowledge from python is like larry and you told, the pyc-files
get rebuild if the timestamp of the py and pyc files differs.
But, because in my case it seems to be handled different, I wondered if
django handles this in another way.
I'll delete them on every rebuild and hope that this solv
Al 07/04/13 21:35, En/na Johannes ha escrit:
I get again to different results.
the shell accesses the settings.py while from the testserver the
settings.pyc is accessed. After I deleted the pyc-file. the testserver
uses the settings.py too.
When and in which cases the pyc-file gets (re)-build?
On Sun, Apr 7, 2013 at 1:35 PM, Johannes wrote:
> I get again to different results.
> the shell accesses the settings.py while from the testserver the
> settings.pyc is accessed. After I deleted the pyc-file. the testserver
> uses the settings.py too.
> When and in which cases the pyc-file gets
I get again to different results.
the shell accesses the settings.py while from the testserver the
settings.pyc is accessed. After I deleted the pyc-file. the testserver
uses the settings.py too.
When and in which cases the pyc-file gets (re)-build?
bg,
Johannes
On 07.04.2013 21:24, Alexis Rod
Al 07/04/13 20:35, En/na Johannes ha escrit:
In order to diagnose what the problem really is I'd suggest to add a
print to some of your views:
databases {'default': {'ENGINE': 'django.db.backends.sqlite3',
'TEST_MIRROR': None, 'NAME': ':memory:', 'TEST_CHARSET': None,
'TIME_ZONE': 'UTC', 'TEST_
On 04.04.2013 19:52, Alexis Roda wrote:
> Sounds like you're using two DBs ... does not make much sense since I'd
> expect you're using the same settings.py in both cases, so the same
> database. In the testserver it looks like an in memory database which is
> destroyed upon restart.
>
yes, of c
Hello,
Anyone using django-campaign that can tell me when adding subscriber list,
how I can limit users that are active and in a certain group, like "A"
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group
{% with "/media/"|add:i.no|add:".jpg" as template_str %}
Above line worked for me.
On Sun, Apr 7, 2013 at 3:05 PM, Fatih Tiryakioglu wrote:
> Thank you again Pankaj,
>
> But evaluated string is just ".jpg" . "/media/" and i.no are absent..
>
> On Sunday, April 7, 2013 12:16:34 PM UTC+3, psjinx w
Thank you again Pankaj,
But evaluated string is just ".jpg" . "/media/" and i.no are absent..
On Sunday, April 7, 2013 12:16:34 PM UTC+3, psjinx wrote:
>
> On Sun, Apr 7, 2013 at 1:11 PM, Fatih Tiryakioglu
> >
> wrote:
>
> > {% with "/media/"|add:"{{ i.no }}"|add:".jpg" as template_str %}
> T
On Sun, Apr 7, 2013 at 1:11 PM, Fatih Tiryakioglu wrote:
> {% with "/media/"|add:"{{ i.no }}"|add:".jpg" as template_str %}
This should be
{% with "/media/"|add:i.no|add".jpg" as template_str %}
{% endwith %}
You don't need to use `{{ }}` inside `{% %}`.
--
Sincerely,
Pankaj Singh
http:
Make sure that "django.core.context_processors.media" is listed in
TEMPLATE_CONTEXT_PROCESSORS of your settings.py.
If above context processor is not listed then MEDIA_URL won't be
available in template.
Another reason for this can be that you are using render_to_response
instead of render in you
Hello,
In a html template file, how can I concatenate strings:
I find the solution below:
{% with "/media/"|add:"{{ i.no }}"|add:".jpg" as template_str %}
But
When I use: , template_str is /media/{{ i.no }}.jpg
How can I evaluate
/media/8778877
Thank you very much.
I think the problem is about printing variable. {{ MEDIA_URL }} doesn't
print anything in the template. For now, I solved the problem by using
absolute path, /media/... .
--
On Sunday, April 7, 2013 9:20:16 AM UTC+3, psjinx wrote:
>
> On Sat, Apr 6, 2013 at 4:11 PM, Fati
27 matches
Mail list logo