Could not import settings

2009-01-06 Thread Bradley
I move an existing website running django onto a shared webhost via FastCGI. No matter what I do, I get the following error: ImportError: Could not import settings 'seymourherald.settings' (Is it on sys.path? Does it have syntax errors?): No module named seymourherald.settings my DJANGO_SETTING

could not import settings error, FastCGI

2009-01-06 Thread Bradley
I'm having a strange problem in that I can make any change that I want to the .fcgi file, short of deleting it and I get the same django error about seymourherald.settings not found. I can delete the entire contents of the file so all it has in it is #!/path/to/python and it still gives me this e

Adding a view inside a view?

2009-01-14 Thread Bradley
I'm new to Django and I'm trying to modify an existing django website for a local newspaper. They would like to have a polls on the their website. I just used the tutorial from the djangoproject website to create the polls module. It works fine, except that I need it to work inside a section o

Can anyone explain why reverse() never seems to work?

2008-12-20 Thread Bradley Wright
Given the following code, can anyone explain why Django can't reverse this, because I'm of the opinion that reverse is the flakiest function ever: << models.py >> class Post(models.Model): """created is a datetime object""" @permalink def get_absolute_url(self): params = dict

Re: Can anyone explain why reverse() never seems to work?

2008-12-21 Thread Bradley Wright
Cheers, I was just doing something stupid then. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this grou

Re: Overwriting Django Authentication / Session Logic

2008-12-21 Thread Bradley Wright
I have the same issue, but my issue is that Django is interfacing with a web service and ideally will have *no user database* on the front end. All the examples I've seen involve essentially copying the user from LDAP/wherever and sticking them in the User model, which: a) Is duplication across s

Re: Request dictionary in view

2008-12-21 Thread Bradley Wright
Request isn't ending up in the context, try installing: http://docs.djangoproject.com/en/dev/ref/templates/api/#django-core-context-processors-request It's not enabled by default, and you need it to make request available in templates. --~--~-~--~~~---~--~~ You re

Re: Overwriting Django Authentication / Session Logic

2008-12-21 Thread Bradley Wright
On Sun, Dec 21, 2008 at 8:00 PM, Sahil R Cooner wrote: > You don't have to store anything in the database you can just use the models > to store > information then return that the user is authenticated...I can post a code > example for you I > have made using ldap auth without storing to a data

Re: could not import settings error, FastCGI

2009-01-07 Thread Bradley Proctor
Malcolm Tredinnick wrote: > On Tue, 2009-01-06 at 19:40 -0800, Bradley wrote: > >> I'm having a strange problem in that I can make any change that I want >> to the .fcgi file, short of deleting it and I get the same django >> error about seymourherald.settings

Re: Creating Dybamic "models"

2008-07-20 Thread Bradley Wright
On Jul 20, 8:45 am, festersen <[EMAIL PROTECTED]> wrote: > > In a more upscaled version I > > could have 10 different article types, where all of them are slightly > > different. > > maybe you want to read some notes about "inheritance" The "inheritance" being referring to: http://www.djangoproj

Re: Multi-Table DB Inheritance (Finding Child Model)

2008-07-25 Thread Bradley Wright
On Jul 25, 7:03 am, "Adam Fast" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using Multi-Table Inheritance as the basis of a tumblelog - all > the common pieces of data are stored on the base class / table > (StreamItem) > > I'm doing a StreamItem.objects.all() and looping through the items. > But

Re: Apache ImportError: Could not import settings

2009-02-02 Thread Bradley Wright
I had the following vhost.conf, which worked for me (before I switched to WSGI): NameVirtualHost 127.0.0.1 # dynamic Django site ServerAdmin myem...@mysite.com ServerName mysite.com SetHandler python-program PythonHandler django.core.handlers.modpython PythonDebug Off

Re: mod_python and import path

2009-02-08 Thread Bradley Wright
On Feb 8, 4:39 am, Jeff wrote: > I installed django today and have not been able to get it to work with > apache, or itself really.  I have the path in the sys.path and have > set the settings module to point to it, but it cannot find it.  It > works fine when I use 'python manage.py shell' or 'p

Re: mod_python and import path

2009-02-08 Thread Bradley Wright
On Feb 8, 4:25 pm, Jeff wrote: > I actually got it to work by changing the PYTHONPATH from '/var/www/ > django/legend' to just '/var/www/django'.  Not sure if this is only > due to my version of python or what.  But thank you for the help. It's because Python tries to look inside the directories

Managing static assets in Django - almost solved

2009-02-27 Thread Bradley Wright
As an ex-Yahoo!, I'm usually looking for ways to improve my YSlow [1] and static asset handling capabilities in any project. Traditionally, this is something Django has been very weak at, as it focuses mostly on the database and application stack of the project. So between myself and a colleague w

Tutorial problems

2010-06-25 Thread Bradley Hintze
my computer. any idea? -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To u

Cant find django

2010-07-05 Thread Bradley Hintze
jango-admin.py startproject mysite' with no luck (-bash: django-admin.py: command not found). Any help (whithout negative remarks) would be appreciated. Thank you -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You received this message becau

Re: Cant find django

2010-07-05 Thread Bradley Hintze
o-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You received this message because you are subscrib

Re: Cant find django

2010-07-05 Thread Bradley Hintze
I found http://www.djangoproject.com/download/ that answers most my questions. I'm sure there will be more to come soon. Thanks, Bradley On Mon, Jul 5, 2010 at 11:05 PM, Bradley Hintze wrote: > I am uninstalling BitNami Django. > > Where can I get a tarball? (which one should I g

Tutorial Help

2010-07-06 Thread Bradley Hintze
ror: No module named pollsdjango.contrib.admin Any ideas? -- Bradley J. Hintze -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-user

Re: Tutorial Help

2010-07-06 Thread Bradley Hintze
Thanks James, I feel sheepish ;) On Tue, Jul 6, 2010 at 12:03 PM, James Bennett wrote: > On Tue, Jul 6, 2010 at 10:56 AM, Bradley Hintze > wrote: >> Error: No module named pollsdjango.contrib.admin > > Look at your INSTALLED_APPS setting. You're missing a comma between

Apache config trouble

2010-07-07 Thread Bradley Hintze
ax Here is what I have in httpd.conf: #WSGI stuff WSGIScriptAlias / /Library/WebServer/testing123/apache/django.wsgi Order deny,allow Allow from all # I am not seeing the 'invalid syntax.' Ane help would be appreciated -- Bradley J. Hintze Graduate Student Duke University Schoo

Re: Apache config trouble

2010-07-07 Thread Bradley Hintze
BINGO. Thanks! The newbie didn't think of the syntax error being in the file, thought it was in httpd.conf. Found it, fixed it, all is well. I'm sure I'll be posting more. Thanks for the help again, Bradley On Wed, Jul 7, 2010 at 10:06 AM, Nuno Maltez wrote: > Hi, > >

URL Trouble

2010-07-07 Thread Bradley Hintze
$', 'index'), (r'^/contact/$', 'contact'), ) I hope thats enough info. Any ideaaas? Thanks, Bradley -- Bradley J. Hintze Graduate Student -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: URL Trouble

2010-07-07 Thread Bradley Hintze
Thanks, that was it! On Wed, Jul 7, 2010 at 5:54 PM, Daniel Roseman wrote: > On Jul 7, 10:48 pm, Bradley Hintze > wrote: >> Hi all, >> >> I am trying to followhttp://docs.djangoproject.com/en/1.2/topics/forms/ >> >> I put contact.html in myTemplates. >>

Is Django right for what I am trying to do

2010-07-08 Thread Bradley Hintze
Are there methods to simply get post data from a form that I write rather the django automatically creating it (an example maybe)? are models necessary for what I'm explaining? Is django right for what I'm explaining? -- Bradley J. Hintze Graduate Student Duke University School of M

Re: Is Django right for what I am trying to do

2010-07-08 Thread Bradley Hintze
tting info from the user should be strait foreword but its not as displayed by the rather lengthy tutorial. But than I'm new to this... On Thu, Jul 8, 2010 at 5:08 PM, Daniel Roseman wrote: > On Jul 8, 6:43 pm, Bradley Hintze wrote: >> Hi all >> >> I did the tutorial and

Re: Is Django right for what I am trying to do

2010-07-08 Thread Bradley Hintze
objects from your model (FileForm) to your template? On Thu, Jul 8, 2010 at 5:51 PM, CLIFFORD ILKAY wrote: > On 07/08/2010 05:23 PM, Bradley Hintze wrote: >> >> I guess I just don't like the model.py, views.py, templates, and >> url.py. In the tutorial you have to edit all

Re: Is Django right for what I am trying to do

2010-07-08 Thread Bradley Hintze
Thanks man!! On Thu, Jul 8, 2010 at 6:11 PM, larsendt wrote: > Check out djangobook.com. It's a much longer tutorial, and really well > written. > > On Jul 8, 4:07 pm, Bradley Hintze wrote: >> Thanks, that helps but I wish Django had more tutorial than one. I >> s

MySQL Newbie question

2010-08-16 Thread Bradley Hintze
not found There is a lot of supposed help online for this but after a few hors of googling I have yet to find mysql_config on my machine. Is there another package that I must install first? -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You receive

Displaying images

2010-08-19 Thread Bradley Hintze
#x27; ... base.html ... ... All the base.html code shows as expected but the image is broken. Any ideas? -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Displaying images

2010-08-19 Thread Bradley Hintze
y media files? On Thu, Aug 19, 2010 at 11:07 AM, Steve Holden wrote: > On 8/19/2010 11:00 AM, Bradley Hintze wrote: >> Hi all, >> >> I am trying to display an image but cant get it up. I tried google >> searches and tried what was suggested with no luck. i am a newbie >>

Re: Displaying images

2010-08-19 Thread Bradley Hintze
Javier Unfortunately, changing the quotes as you explained did not work. Bradley On Thu, Aug 19, 2010 at 11:15 AM, Javier Guerra Giraldez wrote: > On Thu, Aug 19, 2010 at 10:00 AM, Bradley Hintze > wrote: >> > > you got the quotes wrong: > > > > -- >

Re: Displaying images

2010-08-19 Thread Bradley Hintze
hu, Aug 19, 2010 at 11:31 AM, Javier Guerra Giraldez wrote: > On Thu, Aug 19, 2010 at 10:28 AM, Bradley Hintze > wrote: >> Javier >> >> Unfortunately, changing the quotes as you explained did not work. > > likely the template isn't gettng the MEDIA_URL variable.

Re: Displaying images

2010-08-19 Thread Bradley Hintze
I am sorry. How does this 'Context' object(?) relate to displaying an image? Your last though me for a loop. On Thu, Aug 19, 2010 at 12:11 PM, Javier Guerra Giraldez wrote: > On Thu, Aug 19, 2010 at 10:49 AM, Bradley Hintze > wrote: >> >> ... >> >> so i

Re: Displaying images

2010-08-19 Thread Bradley Hintze
So do I create 'my_data_dictionary'? and whats in there? On Thu, Aug 19, 2010 at 12:54 PM, Steve Holden wrote: > On 8/19/2010 12:29 PM, Bradley Hintze wrote: >> I am sorry. How does this 'Context' object(?) relate to displaying an >> image? Your last though

Re: Displaying images

2010-08-19 Thread Bradley Hintze
% endblock %} {% block footer %} Thanks for visiting my site. {% endblock %} On Thu, Aug 19, 2010 at 1:11 PM, Javier Guerra Giraldez wrote: > On Thu, Aug 19, 2010 at 12:03 PM, Bradley Hintze > wrote: >> So do I create 'my_data_dictionary'? and whats in there? >

Re: Displaying images

2010-08-19 Thread Bradley Hintze
Greg, that didn't do it :( Thanks though :) On Thu, Aug 19, 2010 at 1:43 PM, Greg Pelly wrote: > try this: > def math_form(request): >   return render_to_response('form.html', > {}, context_instance=RequestContext(request)) > > greg > On Thu, Aug 19, 2010

Please wait page

2010-08-23 Thread Bradley Hintze
here is an intermediate page that says something to the effect of 'finding flights.' I'm not sure what term to google for this query. If you can point me in the right direction I'd appreciate it. Thanks Bradley -- Bradley J. Hintze Graduate Student Duke University School of Medicine

permissions and ownership

2010-08-26 Thread Bradley Hintze
atly appreciated. Thanks, Bradley -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroup

Re: permissions and ownership

2010-08-26 Thread Bradley Hintze
26 09:35 MolProbity_Compare_test Any ideas out there??? On Thu, Aug 26, 2010 at 10:06 AM, Bradley Hintze wrote: > Hi all, > > I am a newbie when it comes to Appach and mod_wsgi. I followed > http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango and think > I did everthing cor

Re: permissions and ownership

2010-08-26 Thread Bradley Hintze
/django.wsgi'. [Thu Aug 26 12:30:25 2010] [error] [client 152.16.223.251] IOError: [Errno 13] Permission denied I hope someone can help me given this. Bradley On Thu, Aug 26, 2010 at 11:45 AM, Bradley Hintze wrote: > Here are some more details. > > httpd.conf > > Alias /med

Re: permissions and ownership

2010-08-26 Thread Bradley Hintze
I got it :) On Thu, Aug 26, 2010 at 12:35 PM, Bradley Hintze wrote: > Not getting much of a respose BUT I did make progress. I had a major > typo but now i get Internal Server Error > > error_log > > Thu Aug 26 12:30:25 2010] [error] [client 152.16.223.251] > (13)Permission

Template not found

2010-08-26 Thread Bradley Hintze
me that it may not be finding my other templates. I've checked my settings.py aand the template path is set correctly. Could there be something else going on? Thanks -- Bradley J. Hintze Graduate Student Duke University School of Medicine -- You received this message because you are subs

Re: Template not found

2010-08-26 Thread Bradley Hintze
[error] [client 152.16.223.251] File "/Library/Python/2.6/site-packages/django/template/loader.py", line 138, in find_template [Thu Aug 26 17:41:27 2010] [error] [client 152.16.223.251] raise TemplateDoesNotExist(name) [Thu Aug 26 17:41:27 2010] [error] [client 152.16.223.251] Te

Re: Template not found

2010-08-26 Thread Bradley Hintze
on the sys.path in django.wsgi, here it is: import os import sys sys.path.append('/Users/bradleyhintze/djcode') sys.path.append('/Users/bradleyhintze/djcode/MolProbity_Compare_test') os.environ['DJANGO_SETTINGS_MODULE'] = 'MolProbity_Compare_test.settings' import

Re: Template not found

2010-08-26 Thread Bradley Hintze
Got it! On Thu, Aug 26, 2010 at 2:56 PM, Bradley Hintze wrote: > A found the template error, a typo. But now I have an impor error: > > [Thu Aug 26 14:50:50 2010] [error] [client 152.16.223.251] mod_wsgi > (pid=1440): Exception occurred processing WSGI script > '/Users/

Re: Template not found

2010-08-27 Thread Bradley Hintze
ought that I could change the file no problem, specifically I assumed ownership wouldn't change. Is this a probleem that someone can help me with? On Fri, Aug 27, 2010 at 11:21 AM, Bradley Hintze wrote: > LOL and grr, > > I wish I had posted my solution. I'm getting the s

Re: Template not found

2010-08-27 Thread Bradley Hintze
d all the requisite absolute paths. Any ideas? I'll let you know what I find if I find anything at all. Bradley On Fri, Aug 27, 2010 at 4:58 AM, Steve Holden wrote: > On 8/27/2010 3:41 AM, Reinout van Rees wrote: >> On 08/26/2010 09:11 PM, Bradley Hintze wrote: >>> Got it!

variable name spaces

2010-08-27 Thread Bradley Hintze
mpts to use correct vocabulary). Does this mak sense? if so, Is there a way around this such that I can use variables created in on view function in another? Bradley -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You received this message because yo

static files

2010-08-30 Thread Bradley Hintze
media SetHandler None WSGIScriptAlias / /Users/bradleyhintze/djcode/production/MolProbity_Compare_test/apache/django.wsgi Order deny,allow Allow from all Any help would be appreciated. Thanks -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You rec

Re: static files

2010-08-30 Thread Bradley Hintze
I think you just found my problem...lol. I'll let you know if I still have problems On Mon, Aug 30, 2010 at 2:59 PM, Daniel Roseman wrote: > On Aug 30, 7:26 pm, Bradley Hintze > wrote: >> Hi all, >> >> I have my site on a production server (apache) and am trying

Re: static files

2010-08-30 Thread Bradley Hintze
edia/' ... Any ideas? Or do you need mor info? if so, what? On Mon, Aug 30, 2010 at 3:09 PM, Bradley Hintze wrote: > I think you just found my problem...lol. I'll let you know if I still > have problems > > On Mon, Aug 30, 2010 at 2:59 PM, Daniel Roseman wrote: >> O

Re: static files

2010-08-30 Thread Bradley Hintze
I added: AliasMatch /([^/]*\.gif) /Users/bradleyhintze/djcode/production/MolProbity_Compare_test/media/$1 and it worked. YAY! On Mon, Aug 30, 2010 at 3:26 PM, Bradley Hintze wrote: > OK, > > I followed http://code.google.com/p/modwsgi/wiki/IntegrationWithDjango > and still sant se

Please wait page trouble

2010-08-30 Thread Bradley Hintze
run_DHM(request): please_wait(request) lengthy calculations... This did not show the 'Please Wait' page. Is there a better way to do what I am trying to do? -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-8799 -- You received this message b

Re: Please wait page trouble

2010-08-31 Thread Bradley Hintze
oza La Fuente wrote: > On Mon, Aug 30, 2010 at 7:18 PM, Bradley Hintze > wrote: >> I am attempting to do a lengthe calculation that will require the user >> to wait a bit. I want a 'Please wait page to come up while the lengthy >> calculation is performed. I thought th

Re: Please wait page trouble

2010-08-31 Thread Bradley Hintze
like are brand new to me. Thanks, Bradley On Tue, Aug 31, 2010 at 10:38 AM, Bradley Hintze wrote: > I'll look into this. I have no idea what you mean by 'ajax' or 'json'. > Thus your code doe'snt really make sense given my lack of knowlege. I > will do some g

Re: Please wait page trouble

2010-08-31 Thread Bradley Hintze
quest) return a HttpResponse? I have a template I want it to return so shouldn't I use render_to_response? Obviously, I am not getting how the javascript works so I have no idea how to set this up. I was hoping there was a pythonic solution :). I hope this explains my utter confusion sufficient

seeing HTML code, not the interpreted html

2010-09-01 Thread Bradley Hintze
(r'^rotamer_diff/$', rotamer_dif_frame), ... views.py ... def rotamer_dif_frame(request): return render_to_response('rotamer_dif_frame.html', request.session, context_instance=RequestContext(request)) ... rotamer_dif_frame.htm {{ rotamer_dif_html }} -- Bradley J. Hintze Gr

Re: seeing HTML code, not the interpreted html

2010-09-01 Thread Bradley Hintze
I just made the HTML in the template using a for loop. DOH!! On Wed, Sep 1, 2010 at 10:38 AM, Bradley Hintze wrote: > Hi all, > > I am playing with iframes for the first time and am gelling some > undesired results. The 'stuff' in my frame shows as HTML code instead

Template syntax

2010-09-02 Thread Bradley Hintze
{% else %} {% endifequal %} {% endifequal %} {% endfor %} param1_trunc is a list of lists. Can I not access a object within an internal list in a template llke regular python (see below)? >>p =[[1,2,3],[3,4,5]] >>print p[0][1] 2 -- Brad

Re: Template syntax

2010-09-03 Thread Bradley Hintze
gt; >  {% ifequal param1_trunc.i "-" %} > > On Thu, Sep 2, 2010 at 5:11 PM, Bradley Hintze > wrote: >> Hi, >> >> Django says that this is a TemplateSyntaxError. >> >> if param1_trunc[i][1] >> >> The i refers to an index of a for loop as

Re: Template syntax

2010-09-03 Thread Bradley Hintze
So is there a way to access/index lists within the template? On Fri, Sep 3, 2010 at 12:14 PM, Javier Guerra Giraldez wrote: > On Fri, Sep 3, 2010 at 11:10 AM, Bradley Hintze > wrote: >> -In my template I put {{ param1.0 }}, expecting to see the first list >> in the list o

Re: Please wait page trouble

2010-09-07 Thread Bradley Hintze
good method if > you want to return structured data. In the above example of a redirect you > could just return anything I suppose, i.e., just an 'OK'. > > On Tue, Aug 31, 2010 at 5:11 PM, Bradley Hintze > wrote: >> >> Ok, I'll try to elaborate. again java

Re: Please wait page trouble

2010-09-08 Thread Bradley Hintze
min.js"</a>;> > > Then I'd recommend one of the tutorials, e.g.,: > > http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery > > The tutorials should serve as live examples. > > On Tue, Sep 7, 2010 at 10:31 AM, Bradley Hintze > wrote: >> >&

Re: Please wait page trouble

2010-09-09 Thread Bradley Hintze
o error Caught NoReverseMatch while rendering: Reverse for 'run_DHM' with arguments '()' and keyword arguments '{}' not found. run_DHM takes 'request' as an argument. How do I pass it the argument?? Bradley On Wed, Sep 8, 2010 at 9:34 PM, Brian Neal wro

Re: Please wait page trouble

2010-09-09 Thread Bradley Hintze
isplay a Please Wait page that fires off an AJAX call to some view that > performs calculations => run_DHM. The results of the calculations are stored > in the session. > 2. run_DHM returns a simple response that will indicate sucess, e.g., "OK" > 3. Redirect to

Re: Please wait page trouble

2010-09-09 Thread Bradley Hintze
#x27;please_wait.html', ...) > > def run_DHM(request): >     # Do calculations, store results in request.session >     ... >     # If everything ok, return OK (otherwise return some error) >     return HttpResponse('OK') > > def display_DHM(request): >

Re: Please wait page trouble

2010-09-09 Thread Bradley Hintze
Yeah, I just tried out what I wrote in my last and it worked! Thanks for all your help!!! Bradley On Thu, Sep 9, 2010 at 11:17 AM, Alec Shaner wrote: > That's really a design issue up to you, i.e., how you get data from your > view to your template. Since I don't know the fo

Re: Please wait page trouble

2010-09-09 Thread Bradley Hintze
}); an of course configure url.py and view.py as explained previously. Is there an easy way to do this? In other words, what are the If_come_from_pageA and If_come_from_pageB conditions? Can I access the context dictionary that I passed to please_wait.html? On Thu, Sep 9, 2010 at 11:23 AM, Bradle

Re: Please wait page trouble

2010-09-09 Thread Bradley Hintze
and analyze_compare return views rather than the HTTPResponse "OK" as you indicated but was unsure how to change the javascript to make it work. This seems like it should work but I just get the "please_wait" page indefinitely. Seems as if its not calling {{ calculation_url }

Re: Please wait page trouble

2010-09-10 Thread Bradley Hintze
I got to work! I needed a good nights sleep to see it. the url was '/DHM_run/' NOT '/run_DHM/'. Thanks Alec On Thu, Sep 9, 2010 at 4:20 PM, Bradley Hintze wrote: > Ok, cant quite get it. Here is what I have: > > please_wait.html > ... > src="<a rel=

'ifequal' takes two arguments

2010-09-22 Thread Bradley Hintze
I am getting an ''ifequal' takes two arguments' error for this line: {% ifequal {{ param2_trunc_new.3.0 }} {{ param2.4.1 }} %} I believer those are indeed two arguments. What going on here? -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-87

url not going to view

2010-09-30 Thread Bradley Hintze
e.html', c, context_instance=RequestContext(request)) #home.html home Hello {{ we_r_home }} Link #here here Good Bye {{ we_r_home }} I think I'm not seeing something obvious. Any ideas? Thanks -- Bradley J. Hintze Graduate Student Duke University School of Medicine 801-712-87

Re: url not going to view

2010-09-30 Thread Bradley Hintze
Why $s, if you don't mind me asking? On Thu, Sep 30, 2010 at 10:55 AM, Carlton Gibson wrote: > > On 30 Sep 2010, at 15:42, Bradley Hintze wrote: > >> urlpatterns = patterns('', >>    (r'^', home_view), >>    (r'^here/', here), >&

Re: url not going to view

2010-09-30 Thread Bradley Hintze
LOL, let me rephrase. What is the significance of the '$' (or what does it mean) in the URLs as pointed out in previous messages? On Thu, Sep 30, 2010 at 11:15 AM, Carlton Gibson wrote: > Its the plural of $. > > On 30 Sep 2010, at 16:02, Bradley Hintze wrote: > >>

Re: url not going to view

2010-09-30 Thread Bradley Hintze
an read the Python documentation for the "re"module for more >> insight into all this. >> >> regards >> Steve >> >> On 9/30/2010 11:20 AM, Bradley Hintze wrote: >>> LOL, let me rephrase. >>> >>> What is the significance of th

Tests fail on redirects when admin urls enabled

2007-06-25 Thread Rand Bradley
I recently enabled the admin module on a project I am working on, and some (formerly) passing tests began erroring when testing redirects. Here is the exception traceback from a failing test: Traceback (most recent call last): File "E:\dev\seo\src\seo\sm\tests.py", line 135, in test_seeking_Cit

Re: Tests fail on redirects when admin urls enabled

2007-07-10 Thread Rand Bradley
The Unicode branch merge seems to have corrected the problem. On 6/26/07, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > On 6/26/07, Rand Bradley <[EMAIL PROTECTED]> wrote: > > This is occurring wherever I test a redirect. If I comment out the admin >

Template variable when None displays None

2007-07-11 Thread Rand Bradley
When a template variable value is None, is it expected to render the word 'None'? I would expect this to fail silently instead of displaying the word. Is there a configuration setting or some way to change the default rendering? Do I have to wrap variables with an {% if ... %} in order to not displ

Re: Template variable when None displays None

2007-07-11 Thread Rand Bradley
The default_if_none filter was not working when I tried it the first time, but I retried it after your post and it is working so this may solve my issue. Is that the designed behavior template variables? If the value is None, display the word "None"? So someone has to use the default_if_none filt

Re: Django HTML Editor

2008-06-14 Thread Bradley Wright
On Jun 14, 7:06 am, Ngu Soon Hui <[EMAIL PROTECTED]> wrote: > I want a free HTML editor that is compatible with Django template's > syntax. I just want to edit my Django power application's HTML faster. > When I say compatible, I mean that the editor shouldn't screw up all > the Django template's

Re: Is it bad to use GET parameters for model entities management in my views?

2008-06-19 Thread Bradley Wright
Hi, On Jun 19, 4:31 am, Vasiliy Gladkov <[EMAIL PROTECTED]> wrote: > As i want to allow site editor to edit pages in convenient way without > built-in django admin, i use request.GET parameters like "http:// > localhost:8000/somepage?action=edit" Like inline editing (Flickr-style), right? > A

Re: upload is working, but how to store the path in the imagefield?

2008-06-21 Thread Bradley Wright
It gets saved to your MEDIA_ROOT directory, unless you specify: http://www.djangoproject.com/documentation/model-api/#filefield image = models.ImageField(upload_to='some/path') which will upload the image to that directory under the MEDIA_ROOT path. If you're using a custom form, you also ne

Re: Stability of trunk and 1.0 target: experience, testimonials?

2008-07-03 Thread Bradley Wright
Hi, On Jul 3, 6:58 am, Ramdas S <[EMAIL PROTECTED]> wrote: > It is any day better than PHP.. This is almost definitely the wrong list to be writing comparisons, but as a long-time PHP user (and now a Django user), I have to say that PHP is not as bad or useless as Python apologists tend to make

Unexpected keyword argument 'runner' when running unit tests

2007-05-29 Thread Rand Bradley
When I run my unit tests using 'manage.py test', I recently started receiving the following exception: Traceback (most recent call last): File "E:\dev\engage\src\engage\manage.py", line 11, in execute_manager(settings) File "e:\dev\django\django\core\management.py", line 1678, in execute

Django queryset 'in' operator on two querysets fails on first call

2013-04-10 Thread bradley griffiths
Cross posted from: stack overflow . When using the 'in' operator on two querysets, the first time the call is made it fails. from django.db import models class Category(models.Model):

Django queryset 'in' operator fails on first call

2013-04-10 Thread bradley griffiths
Corss posted from stack overflow When using the 'in' operator on a queryset, the first time the call is made it fails. from django.db import models class Category(models.Model): name = models.Cha