SOAPpy and pyxml installation/usage

2008-12-11 Thread Steve
This may be a more of a generic Python question, but I'm working with Django so thought that I'd see if there's a Django specific solution to it. I'm trying to work with SOAP. I'm new to it and a Jr. programmer as well. From Dive into Python it has this great example about how to handle SOAP call

Re: SOAPpy and pyxml installation/usage

2008-12-12 Thread Steve
re out how to convert the above code to ZSI. -Steve On Dec 11, 5:57 am, "Paul Nendick" wrote: > Hello Steve, > SOAPy appears to be moribund. I was once using it within a Python SOA > I'd worked with and chose to abandon it when we moved that system to > Python 2.5.

Re: SOAPpy and pyxml installation/usage

2008-12-12 Thread Steve
.GetCityWeatherByZIP('94552') print result.Temperature Thanks! On Dec 12, 12:24 am, Jarek Zgoda wrote: > Wiadomość napisana w dniu 2008-12-11, o godz. 09:31, przez Steve: > > > This may be a more of a generic Python question, but I'm working with > > Django so thoug

Re: SOAPpy and pyxml installation/usage

2008-12-15 Thread Steve
rs. I'm going to try to post this on the suds page, see if they can't fix it. -Steve On Dec 12, 12:24 am, Jarek Zgoda wrote: > Wiadomość napisana w dniu 2008-12-11, o godz. 09:31, przez Steve: > > > This may be a more of a generic Python question, but I'm working with

Re: SOAPpy and pyxml installation/usage

2008-12-17 Thread Steve
request self.endheaders() File "c:\python25\lib\httplib.py", line 856, in endheaders self._send_output() File "c:\python25\lib\httplib.py", line 728, in _send_output self.send(msg) File "c:\python25\lib\httplib.py", line 695, in send self.connect()

Re: Django Development Process

2009-01-11 Thread steve
You'll find the perfect way for you to approach each stage of it I'm sure. I'm always into figuring out Use Cases the very first thing. I like to establish at least 4 or 5 different major tasks that a user would need/want to do, and then get these out of my head into a concrete form (currently

Which Postgresql/Psycopg2 version should we use?

2008-07-22 Thread Steve
Recently we migrated from a working version of our site with MySQL with the MySIAM engine to Postgresql 8.3.3/Pyscopg2.07. I built/ installed both on the site and after some finagling got our site to connect and ran syncdb successfully. All our unit tests passed, but the site behaves erratically n

Re: Which Postgresql/Psycopg2 version should we use?

2008-07-22 Thread Steve
way slowly from the database and pray it doesn't spontaneously combust. On Jul 22, 11:36 am, Steve <[EMAIL PROTECTED]> wrote: > Recently we migrated from a working version of our site with MySQL > with the MySIAM engine to Postgresql 8.3.3/Pyscopg2.07. I built/ > installed both o

ModelForm and submitting a null value via JSONI

2009-01-30 Thread steve
stock_status=1,user_id=0,storename="vons") p.save() It works, it gets inserted succesfully. Django accepts the blank string and creates a record with this foreign integer field as null. I'm thinking I should put aside the usage of ModelForm for now and

Re: ModelForm and submitting a null value via JSONI

2009-01-30 Thread steve
Dang, I need to make a correction. Meant to type: Ingr = IngredientEditForm(request.POST, instance=Item), not: instance=I On Jan 30, 2:01 pm, steve wrote: > Hi everyone,  this issue is related simply to using jquery's $.post to > send some data to my view. I want to e

Re: ModelForm and submitting a null value via JSONI

2009-01-30 Thread steve
This is frustrating. I need to slow down before posting. I wanted to make it clear that I still have the problem, it's just that I was correcting the way I typed out the example in this forum. On Jan 30, 2:03 pm, steve wrote: > Dang, I need to make a correction. Meant to type: &g

Re: ModelForm and submitting a null value via JSONI

2009-01-30 Thread steve
That's got to be it. Thanks a lot, Daniel. On Jan 30, 4:02 pm, Daniel Roseman wrote: > On Jan 30, 10:01 pm, steve wrote: > > > >  The problem is that the form validation fails. And it's because I'm > > sending a blank string in the category field. This fi

Tagging extension app? When a tag is more than a tag

2009-07-28 Thread Steve
ngo-ae that was an alias for the intersection/path for tags django/app-engine/django-apps Has anyone done this type of thing already? Best Regards, Steve http://agilitynerd.com http://googility.com --~--~-~--~~~---~--~~ You received this message because you are

Re: Record won't Insert, possibly due to not using built in 'ID'?

2010-05-18 Thread steve
lt;--- add this print msg The output of msg will tell you exactly what's going on. (Make sure also you're including all of the fields that are "not null", but I'm guessing that particular error would cause the full- page development error output that Django gives

Missing Response

2010-05-18 Thread steve
Just wondering what happened to my response to: Record won't Insert, possibly due to not using built in 'ID'? It says Last Post by Steve, but the message is missing. Steve -- You received this message because you are subscribed to the Google Groups "Django users&quo

Re: Extremely simple question that I can't get a simple answer for in Docs

2010-05-19 Thread steve
That was it, Tom, thanks On May 19, 9:43 am, Tom Evans wrote: > On Wed, May 19, 2010 at 5:37 PM, pyfreak wrote: > > I was on this page, but I went directly to the "1.1" link in that > > first sentence because I am using 1.1 actually > > > This page is for the development version. > > > Thanks th

One of those C.Y.A. User Policy Liability Pages?

2010-05-23 Thread steve
ton at the bottom of the opening page. And that would simply read all the rules (yeah right), and then click "Agree", dismissing the popup and they'd be at the /main_page. -Steve -- You received this message because you are subscribed to the Google Groups "Django users"

Feedparser strange behaviour on Unix-platform Django

2010-05-26 Thread steve
[ It just simply doesn't like this Yahoo feed, when on live Django views.py, on webfaction ] If anyone is using feedparser, I would be grateful if you could try out the yahoo feed above, and tell me if it gets parsed successfully on your live unix-based Django server. If not, no pro

Re: Feedparser strange behaviour on Unix-platform Django

2010-05-26 Thread steve
Resolved. Here it is, but don't throw a tomatoe at me or anything when I tell you. The database table that I was reading my feeds from - the record for the yahoo field.. it had a tab character right before the feed string. :\ On May 26, 12:33 pm, steve wrote: > Feedparser doesn

Getting brackets at the end of your Keys?

2010-05-28 Thread steve
I'm having to, in Javascript, create a dictionary ( my_dict = {} ), then put in some Arrays. my_dict["stringkey"] = Array("hey","hey1") my_dict["stringkey1"] = Array("more","stuff") In the views function: for key in request.POST: prop_rec = request.POST.getlist(key) The Py

OAuth/Twitter flow question

2010-06-02 Thread steve
to also log out of Twitter in ensure you are logged out here" or something to that effect. Just curious as to how anyone else is doing that Steve ( maybe I should be setting settings.LOGIN_URL - which login_required() takes you to - to a page that simply displays the "log in with twitt

Re: Recommendations for a twitter oauth library?

2010-06-04 Thread steve
27;m using, and I haven't read the details on the difference ) -Steve On Apr 28, 1:22 am, Aliaksandr Abushkevich wrote: > Hi Adam, > > OAuth2 works for me. You can use it in any of your python projects. > > Best regards, > Alex > > On Wed, Apr 28, 2010 at 5:33 AM

Textile not working

2007-06-11 Thread Steve
On my server, I am having some issues with the Textile filter. When I first setup my site, I did not install PyTextile, consequently when I used the textile filter on my pages I was throwing an error. To remedy the situation, I installed PyTextile into my site-packages directory. To check that it

Advertisement Management

2007-07-22 Thread Steve
Does anybody know about a publicly available ad management program written using Django that I could easily drop into my project? If there isn't one, I could always write my own, but if there's one already started I'd rather not reinvent the wheel. --~--~-~--~~~---~--

Django.contrib.markup problems

2007-07-27 Thread Steve
I am on a shared hosting environment, and am attempting to make use of the textile filter. I have installed the textile library in $HOME/lib/ python2.3/site-packages, which is on my $PATH, and my $PYTHONPATH. I can import textile through the python interactive interpreter and execute it correctly.

Re: Django.contrib.markup problems

2007-07-29 Thread Steve
On Jul 27, 6:57 pm, "Robert Coup" <[EMAIL PROTECTED]> wrote: > > I suspect whatever is hosting your site (mod_python? fcgi?) is using a > different path or a different interpreter (like 2.4). Print the value > of sys.path from a view and see whether it includes the right folder. > > The other thin

elif or elseif template tag

2008-01-04 Thread Steve
It's possible that maybe I've missed an obvious way of performing this feat, and if that's the case I'll apologize early for my naivety. I'm working on some templates that are drawing a form, and there are a couple of special cases that I want to account for, but I don't want to have to have ifeq

Re: elif or elseif template tag

2008-01-04 Thread Steve
> > You would have to write your own version of the "ifequal" tag, since > that is what is responsible for parsing the whole > "ifequal"..."else"..."endif" block in these cases, so you'd need to > teach it about "elif" as well. Copy the existing code in > django/template/defaulttags.py if you want

Re: elif or elseif template tag

2008-01-04 Thread Steve
> You would have to write your own version of the "ifequal" tag, since > that is what is responsible for parsing the whole > "ifequal"..."else"..."endif" block in these cases, so you'd need to > teach it about "elif" as well. Copy the existing code in > django/template/defaulttags.py if you want t

Re: elif or elseif template tag

2008-01-04 Thread Steve
> You would have to write your own version of the "ifequal" tag, since > that is what is responsible for parsing the whole > "ifequal"..."else"..."endif" block in these cases, so you'd need to > teach it about "elif" as well. Copy the existing code in > django/template/defaulttags.py if you want t

template UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in position 1393: unexpected code byte

2008-02-12 Thread Steve
08 .. How do I get the © character translated correctly? Thanks Steve --~--~-~--~~~---~--~~ 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@googlegroup

Re: template UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in position 1393: unexpected code byte

2008-02-13 Thread Steve
Thanks for all the quick replies, fixed it with © and I'm looking into the utf-8 encoding. Steve On Feb 14, 12:56 am, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Steve napisał(a): > > > UnicodeDecodeError at / 'utf8' codec can't decode byte 0xa9 in > >

MySQLdb Error

2007-05-15 Thread Steve
When trying to perform a syncdb I get the following error: Traceback (most recent call last): File "./manage.py", line 11, in execute_manager(settings) File "/usr/local/lib/python2.5/site-packages/django/core/ management.py", line 1674, in execute_manager execute_from_command_line(ac

Re: MySQLdb Error

2007-05-15 Thread Steve
I forgot to mention... Syncdb was working yesterday when I first ran it. I have added some django.contrib applications to my settings.py, which I have since removed in an effort to try to figure out if that was causing the problem. Sadly, it didn't fix the problem, and that's the only thing that'

Re: MySQLdb Error

2007-05-15 Thread Steve
Apparently there is a difference between the cache created by apache and the one created by django that makes them incompatible. In order for me to run syncdb I had to delete the cache, and before apache could create a new cache, run syncdb... however this caused apache to start throwing the same

Re: MySQLdb Error

2007-05-15 Thread Steve
Dunck" <[EMAIL PROTECTED]> wrote: > On 5/15/07, Steve <[EMAIL PROTECTED]> wrote: > > > > > Apparently there is a difference between the cache created by apache > > and the one created by django that makes them incompatible. In order > > for me to run syncdb I

Django and MySQLdb on Bluehost

2006-07-12 Thread Steve
not correct. How do I correct that? Thanks, Steve --~--~-~--~~~---~--~~ 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 unsu

Re: Django and MySQLdb on Bluehost

2006-07-12 Thread Steve
Nevermind, I figured it out. Gosh I get smarter just by writing to this group :) All I had to do was add the local path of MySQLdb to my .fcgi file under my web root directory. So: sys.path += ['/homedir/pythondir'] --~--~-~--~~~---~--~~ You received this messa

Registering only folks with .org email

2012-08-03 Thread Steve
hould modify the app. For ex., should I download a copy and put it in the main project folder? Any best practices and tips would be greatly appreciated. Steve -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion o

Re: Registering only folks with .org email

2012-08-04 Thread Steve
Thanks, Kurtis. I'll start with subclassing and see how it goes. On Friday, August 3, 2012 4:25:46 PM UTC-4, Kurtis wrote: > > Hey Steve, > > There's a number of ways you could go about tackling this task. I, > typically, would read the original's application code

Should someone with no programming experience start learning Python, or Django (along with Python) first?

2012-01-27 Thread Steve
Just as the title says, I have basically no programming experience. I want to program purely for the web. I know a bit of HTML, CSS, and very minimal amounts of Java. Can I start learning Django first and go from there? Is that a bad idea? -- You received this message because you are subscrib

Re: Apache2 with static file

2011-04-05 Thread Steve
I'm not sure what settings you have defined outside the 'VirtualHost' section in your http.conf. My guess is that you haven't set up the permissions to allow access to the static media directory: Order allow,deny Allow from all Also, I can't see your WSGIScriptAlias anywhere? Are you u

trouble logging in to post ticket for django documentation

2014-08-22 Thread Steve
Total noob here. I'm working through the (very helpful) django tutorials. I'd like to enter a suggestion ticket. I've created a github account and logged into it, yet I still receive the following error message from code.djangoproject.com: You are currently not logged in. You may want to do

Re: trouble logging in to post ticket for django documentation

2014-08-22 Thread Steve
Thanks Russ. Everything's peachy. I poked around enough before posting my message that I ought have put that together myself. Sorry to have bothered you. Cheers. On Friday, 22 August 2014 20:33:58 UTC-4, Russell Keith-Magee wrote: > > Hi Steve, > > We recently changed the

DoesNotExist behavior in db.models query.py

2017-10-23 Thread steve
Sorry, am a bit of a newbie to django internals, all help and advice is appreciated. Thanks, Steve -- 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 e

Re: DoesNotExist behavior in db.models query.py

2017-10-23 Thread steve
the nature of the 400 error. Separately, this does raise the question of should get() and filter() behave similarly or is there a reason that filter() allows empty result sets but get() does not? Thanks, Steve On Monday, October 23, 2017 at 2:49:28 PM UTC-7, st...@fitcode.com wrote: > > I h

Re: DoesNotExist behavior in db.models query.py

2017-10-23 Thread steve
Had I read the source code more carefully, it would have dawned on me what to do and why I had been confused. Thank you. steve On Monday, October 23, 2017 at 2:49:28 PM UTC-7, st...@fitcode.com wrote: > > I have been tripping over the following exception > DoesNotExist: INSERT_YOUR_

Re: Import error exception "No module named urls" when running from eclipse

2008-10-26 Thread Steve Holden
my version, then I should probably find out why my version doesn't > support rename. > > It would be helpful if there were an "app rename" and "project rename" tool but at present I don't believe there is. The fact is that these names do pervade the co

Re: Urlconf page not found question

2008-10-26 Thread Steve Holden
onfs is from the 404 output of the test server. If so, subsidiary url.py files are show by inserting a space between the main line and the lines from the included files. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC

Re: Receiving emails via app

2008-10-26 Thread Steve Holden
thod of delivery you choose. regards Steve --~--~-~--~~~---~--~~ 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

Re: database API from external tools?

2008-10-26 Thread Steve Holden
ial checkout and achieve the same outcome. > > Here's a specific example of a piece of code that uses a web app's models. It should get you started - just dive in and write some code! The tricky bit is providing the settings without using a "settings" module. I can't

Re: When should I do my imports, in views.py?

2008-10-27 Thread Steve Holden
t on speed unless you are using a heavily-layered approach to your programming with many function calls. The import functionality checks the sys.modules dict first thing to see whether the module has already been imported. If so then the value of the sys.modules entry is immedia

Re: Triggering a custom signal

2008-10-27 Thread Steve Holden
ns. >>>> >>>> I've done some brief research, and found django-cron, >>>> and I imagine I could write something that checked each hour to see if >>>> any catalogues had expried recently, but that seems mad. >>>

Re: How to get site's root path in Django

2008-10-27 Thread Steve Holden
S_MODULE Regrroot_url.settings > PythonOption django.root /root_url > PythonDebug On > PythonPath "['D:/ws/django/myproject/'] + sys.path" > Options ExecCGI > Options +Indexes > Order allow,deny > Al

Re: Triggering a custom signal

2008-10-27 Thread Steve Holden
redmonkey wrote: > h. Yeah, That's pretty simple. > > I could even get a reference to the Job number using -v with at, > storing that in the DB and then removing and recreating another at-job > if the user changes the time. > > Brilliant, thank you. > >

Re: Easiest way to pass django documentation from rest to HTML?

2008-10-28 Thread Steve Holden
n docs/_build/html. regards Steve --~--~-~--~~~---~--~~ 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 group, se

Re: Foreign key with tons of items

2008-10-28 Thread Steve Holden
e provide some tips on how to get this? > > Thank you so much, > > The generic solution to this problem is to have a link in your main form that opens up the sub-window, then have the sub-window (before closing itself) set an appropriate attribute of its "opener"

Re: How to get site's root url path in Django

2008-10-28 Thread Steve Holden
increase the probability of a reply. Graham Dumpleton has told you the solution in the other thread. regards Steve yuanyun.ken wrote: > Hi, all great Django users and developers, I have a little problem. > To make @login_required work, > I have to configure those in settings.py: &

Re: 500 displayed instead of 404

2008-10-28 Thread Steve Holden
ance that 404 processing goes squiffy, in which case you may well see a 500. It's clear that some code is being executed in processing the 404 without debug that *isn't* executed when you process a 404 with debug set. Now you just have to find out what ... regards Steve --~--~

Re: Admin page: How to add a column for user that added an item

2008-10-28 Thread Steve Holden
e sensible thing to do would be to add a foreign key to Note to express which user created it. OK, assuming you can import your User model into the module that defines your Note model, you would just need to add user = models.ForeignKey(User) to the Note model. regards Steve --~--~-~

Re: Admin page: How to add a column for user that added an item

2008-10-28 Thread Steve Holden
Robert Dailey wrote: > On Oct 28, 10:29 am, Steve Holden <[EMAIL PROTECTED]> wrote: > >> Robert Dailey wrote: >> >>> Hi, >>> >>> I currently have the following model: >>> >>> class Note( models.Model ): &g

Re: Is this a quirk with the admin template override mechanism or is it me?

2008-10-29 Thread Steve Holden
surely be to add another template directory at the stat of settings.TEMPLATE_DIRS and define the global defaults in there. regards Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Admin page: How to add a column for user that added an item

2008-10-29 Thread Steve Holden
Robert Dailey wrote: > On Oct 28, 2:47 pm, Robert Dailey <[EMAIL PROTECTED]> wrote: > >> On Oct 28, 11:17 am, Steve Holden <[EMAIL PROTECTED]> wrote: >> [...] >> >> I'm have some more questions for you if you don't mind. When I add a >&

Re: Form with 2 models

2008-10-29 Thread Steve Holden
> Are you sure that both forms' save() methods will be called on a submit? regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ --~--~-~--~~~---~--~~ You received this message becaus

Re: 'RegistrationForm' object has no attribute 'clean_data'

2008-10-29 Thread Steve Holden
n. I realise that may not be easy if English isn't your first language, but many readers of this group are very sympathetic, so give it a try. regards Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Problem with pyExcelerator and response

2008-10-30 Thread Steve Holden
; header. Just a thought. regards Steve laspal wrote: > Any one can help me out. > Thanks. > > On Oct 29, 11:41 am, laspal <[EMAIL PROTECTED]> wrote: >> Hi, >> I am trying to create Excel file usingpyExceleratorbut my problem is >> I am not able >>

Re: Problem with pyExcelerator and response

2008-10-30 Thread Steve Holden
position'] = 'attachment; >> filename=output.xls' >> workbook.save('output.xls') >> >>return response. >> >> I am able to generate output.xl file but without any data. >> Can anyone help me out >> Thanks. Correction: the &quo

Re: __unicode__() method not working in models.py

2008-10-30 Thread Steve Holden
thing I've saved in a file for example. > > Any ideas on where I'm going wrong? > Are you declaring the encoding of your source file? Try putting # -*- coding: UTF-8 -*- at the top of your file. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC

Re: Help regarding Login form in client side (front end) in Django.

2008-10-30 Thread Steve Holden
sadeesh Arumugam wrote: > Hi Friends, > > I want to create a login form in client side, anybody please send me > the Sample login page for the client side coding.. > Are you reading the answers to your questions before sending them out again?

Re: Problem with pyExcelerator and response

2008-10-31 Thread Steve Holden
Try replacing workbook.save('output.xls') return response with workbook.save('output.xls') response.write(open('output.xls', 'b').read()) return response regards Steve laspal wrote: > So how can I fix it. > I am not able to

Formset in template with extra per form

2008-11-01 Thread Steve Bergman
set.forms' with 'items' to do things that way, But I don't have the deepest understanding of formsets, so perhaps that is possible. Any thoughts? Thanks, Steve Bergman --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: sharing a module level variable

2008-11-02 Thread Steve Holden
the real question! I don't believe Django signals are intended to serve needs like this. How does "the rest of the program" read the module-level dictionary items? The more explicit you are about the exact communication mechanism involved the more likely it is someone (probably not

Re: django signals

2008-11-02 Thread Steve Holden
our Apache sub-processes? Maybe there's some more appropriate mechanism you could use ... or I could be wrong about Django signals. regards Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Re: Cascading List List Boxes

2008-11-02 Thread Steve Bergman
You will need to display the dependent ChoiceField empty at first, but set the first ChoiceField to submit the form "onchange". (I like to use the JQuery events system for this, but you can do it with "attr".) Then have the view redisplay the form with the dependent ChoiceField populated. IIRC, t

Re: random queryset, how to

2008-11-02 Thread Steve Holden
0] with questions = list(Question.objects.filter(quiz__pk=quiz_id).order_by('?')[:10]) That way the question list is fixed. It would also make more sense to test immediately whether the question list is empty rather than waiting until you build the forms, by following that with

Re: random queryset, how to

2008-11-02 Thread Steve Holden
AvK wrote: > hi, > i want to get random records form the database, the queryset looks > like this : > " > PS: You asked this question at 11:44, then again at 11:45 and yet again at 12:25. Please have a little patience! regards Steve --~--~-~--~~~

Re: Django's decoupling apps but template should couple them together, right?

2008-11-02 Thread Steve Holden
cts, which are a way of providing information to all pages. A slightly fuller description of your intended page structure might let people provide more accurate answers to your needs. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.hold

Re: Django's decoupling apps but template should couple them together, right?

2008-11-03 Thread Steve Holden
bruno desthuilliers wrote: > > On 3 nov, 03:56, Steve Holden <[EMAIL PROTECTED]> wrote: > (snip) > >> You might also want to look into ContextManager objects, which are a way >> of providing information to all pages. >> > > I assume you meant &#

Re: Python package names

2008-11-03 Thread Steve Holden
than modifying the source, and it's a standard Python mechanism. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: Using Django

2008-11-03 Thread Steve Holden
ry-like URL" is passed by a browser the returned result is whatever is generated by the view the the URL is mapped to. Or a 404 if no such mapping can be found. regards Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: An interesting URL dispatcher problem

2008-11-04 Thread Steve Holden
/?$', 'filter'), > The question mark is wrapped around an extra '/' to complete the URL, > but it doesn't work. Nor does > > urlpatterns += patterns('proj.app.views', > (r'^(?P\w+)/$', 'filter'), > (r'^(?P\w+

Re: including javascript in templates

2008-11-06 Thread Steve Holden
denweb_com/static/%s' % d}) for d in settings.STATIC_DIRS )) regards Steve David Sáez wrote: > Hi Håkan, > > yes, I missed the reading of that link. Now that I have set up > correctly it works fine. > > But it has a BIG disclaimer, and the reccommendation

Re: how to get the id in an admin template

2008-11-06 Thread Steve Holden
It's in the only row in your sites table. regards Steve webcomm wrote: > I don't understand the documentation. I am able to get the "view on > site" link to show, but the URL is wrong. The correct URL for the > instance is... > > http://www.mysite.com

Re: App initialized twice? plus, debugging tips.

2008-11-06 Thread Steve Holden
reload option. It's very practical to debug Django under Wing. regards Steve --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django

Re: A question about models

2008-11-06 Thread Steve Holden
se the name of the class as a string. regards Steve --~--~-~--~~~---~--~~ 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 f

Re: apache and django

2008-11-10 Thread Steve Holden
uthors couldn't hope to cover them all. regards Steve > > On Nov 9, 10:33 pm, "DULMANDAKH Sukhbaatar" <[EMAIL PROTECTED]> > wrote: > >> Please follow instructions >> onhttp://docs.djangoproject.com/en/dev/howto/deployment/modpython/to >> setup

Re: question(s) about django-registration, default user profiles and django-profiles

2008-11-11 Thread Steve Holden
y django works. > See "Forms with 2 models": http://groups.google.com/group/django-users/browse_thread/thread/655938b1c01d6dee/0e43647e09b557ba?show_docid=0e43647e09b557ba&pli=1 <http://groups.google.com/group/django-users/browse_thread/thread/655938b1c01d6dee/0e43647e09b557ba?show_do

Re: Setting Up Django on Vista and Creating a Database

2008-11-11 Thread Steve Holden
the first half of your answer a little too quickly. Try D:\Python26\python setup.py install or just make sure that D:\Python26\ is added to your path (assuming that's where you installed Python). regards Steve -- Steve Holden+1 571 484 6266 +1 8

Re: Setting Up Django on Vista and Creating a Database

2008-11-11 Thread Steve Holden
wish to create a Database with username and > password all with the same name ie "myforum" > This is really dependent on the database platform you are planning to use, and not specifically a Django-related question anyway, though it's related enough that I am sure that others

Re: Recursive function

2008-11-12 Thread Steve Holden
By all means use your custom tag. Inside the code for the tag, use a template to generate the HTML. That's all! regards Steve gontran wrote: > Could you be more explicite because I don't understand everything and > why not using my custom tag? (which works fine) > > O

Re: creating django middleware

2008-11-12 Thread Steve Holden
self, request): > request.db_session = session() > return None > > The last statement in your method is completely redundant, and I'd suggest you remove it. How are you verifying that your middleware's "process_request()" method is being called? [...] re

Re: user-registration

2008-11-12 Thread Steve Holden
. Well you are either going to have to install registration somewhere you can edit the files or get permission to edit them in the site-packages directory. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ --~--~---

Re: Recursive function

2008-11-12 Thread Steve Holden
custom tag to build a menu And is there a rule that says you can't do that using templates? regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ --~--~-~--~~~---~--~~ You received t

Re: [Errno 13] Permission denied while using apache2

2008-11-12 Thread Steve Holden
rent directory when that code runs under Apache? It's likely not the same as when you run it under runserver ... so you will either need to change its permissions or switch to a directory you *do* have permissions on. regards Steve --~--~-~--~~~---~--~~ You rece

Re: Performing an operation

2008-11-12 Thread Steve Holden
Just make sure when you *do* set your hosting up that you get shell (command line) access of some kind so you can set up the cron jobs. regards Steve [EMAIL PROTECTED] wrote: > Thanks for your help Daniel! I havent got hosting sorted yet so its > something Ill have to set up later. >

Re: slow django builtin webserver

2008-11-12 Thread Steve Holden
sounds a bit like a DNS problem to me, though that's only one of many possible diagnoses. Is "localhost" set in the /etc/hosts file? regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ --~--~-~--~~

Re: creating django middleware

2008-11-13 Thread Steve Holden
ershadul wrote: > Dear , > I dont know whether my process_request() is being called or not? > Can you inform me please, how can i verify that my middleware's > process_request() is called ? > > On Nov 12, 4:42 am, Steve Holden <[EMAIL PROTECTED]> wrote: &g

Re: Simple date issue ...

2008-11-13 Thread Steve Holden
> > I'm probably missing something really simple here ... How are you declaring the dates in the model, and what database platform are you running on? regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ --~-

Re: Read/Create Excel xls files using django

2008-11-13 Thread Steve Holden
ourceForge might work. Do you *really* have to create an xls file? If your users just want to get the data into Excel then creating a csv file is a much easier way of managing that. regards Steve --~--~-~--~~~---~--~~ You received this message because you are subsc

Re: Templates - testing multiple things on IF line

2008-11-13 Thread Steve Holden
John M wrote: > Does the IF tag allow for OR's or AND's? > > Yes. You can use one or the other, but not both, IIRC. [Checks documentation]. Yes: "If you need to combine and and or to do advanced logic, just use nested i

  1   2   3   4   5   6   7   8   >