Shouldn't blank=True imply null=True?

2009-01-05 Thread Mike
e you also currently need null=True. (null=True causes django to insert a null instead of an empty string) If the type is not a string, and blank=True is set, shouldn't null=True be implied? Thanks, Mike --~--~-~--~~~---~--~~ You received this message because you ar

Re: InlineModelAdmin min_num ?

2008-08-21 Thread mike
I'm thinking more of something in the ModelAdmin classes to replace min_num_in_admin that I'm using as an argument in models.ForeignKey() On Aug 19, 12:36 am, Peter of the Norse <[EMAIL PROTECTED]> wrote: > Perhaps you’re thinking of `extra`? > > On Aug 13, 200

Django with mod_fcgid

2009-02-01 Thread MIke
Hi, I just started looking at Django, and since I'm using mod_fcgid anyhow for other things, I thought I'd look into using it with Django as well. One benefit of mod_fcgid over mod_fastcgi is that it does all process management for you, and in my impression it's quite well- behaved. Turns out it

HttpResponse post

2009-02-16 Thread Mike
Hi all, I m not familiar with django and I have found several problems trying to sent a httpresponse with post parameters. I would like to return an httpresponse (or httpredirect) to a new url with the request parameters via post. Could anybody help me? Thank you in advance, Miguel I have defin

How to access fields of custom intermediary table

2009-07-16 Thread mike
l() >>> print mods [, ] >>> for i in mods: ...print i.partnum ... ACT1GHU64B8F1333S ACT2GHU64B8F1333S My question is: How do I access the extra fields stored in my custom intermediate table? In this case that would be the count field. I have search the Django

How to access fields of custom intermediary table

2009-07-16 Thread mike
gt; for i in mods.all(): ...print i.size ... 1 2 My question is - How can I access the extra fields stored in the intermediary table? In this case the count field? I've been searching through the Django documentation but can't seem to find any examples. Thanks for any help! Mi

Re: How to access fields of custom intermediary table

2009-07-16 Thread mike
es. > > > Thanks for any help! > > > Mike > > m = Motherboard.objects.get(name="C7X58") > mem_mods = m.memmodules_set.all() > for mem_mod in mem_mods: >   print "%d x %s" % (mem_mod.count, mem_mod.memory) > > Cheers > > Tom Thanks

Query builder or report builder

2009-07-29 Thread mike
erested to hear what anyone else thinks of this concept. Regards, Mike Kimmick --~--~-~--~~~---~--~~ 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@googlegrou

Re: Query builder or report builder

2009-07-29 Thread mike
n connect to a db and read the schema which then allows you to query the db. I'd like to do the same but as a django app, it would read the 'schema', so to speak, from the django project's models.py. This part, I have mostly working. Providing a useful, organized and efficien

Re: how save data into more than one table?

2009-07-29 Thread mike
On Jul 29, 3:39 pm, Asinox wrote: > Hi guys, i cant find a example about how ill save data in two or more > tables... somebody help me please > > Thanks You essentially use two form instances and feed both to your template. You can have multiple django forms in a single html form, so when they'

Re: how save data into more than one table?

2009-07-29 Thread mike
f your models. hint: get object (if it exists) from second table, and update the corresponding field http://docs.djangoproject.com/en/1.0//topics/db/queries/ Regards, Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

syncdb and runserver fails -- related to trans_real.py

2009-08-07 Thread mike
). Unfortunately, I hit a dead end there when I saw that my django/conf/ locale is not empty. I'm hoping someone else has experienced this and found a fix! Thanks in advance, Mike Traceback (most recent call last): File "manage.py", line 28, in execute_from_command_line()

Re: Appeding entire table to a backup table

2009-08-24 Thread Mike
Thanks Tim, in that case I will carry on this way. 2009/8/23 Tim Chase : > >> The raw SQL is something along the lines of "INSERT INTO backup SELECT >> * FROM today; DELETE FROM today;". >> >> Is there a Django way of doing this? I would required something >> similiar to this: >> todays_records =

Re: Database connection closed after each request?

2009-08-29 Thread Mike
Hi, I made some small custom psycopg2 backend that implements persistent connection using global variable. With this I was able to improve the amount of requests per second from 350 to 1600 (on very simple page with few selects) Just save it in the file called base.py in any directory (e.g. postg

Re: Database connection closed after each request?

2009-08-31 Thread Mike
Hi, I also would like to note that this code is not threadsafe - you can't use it with python threads because of unexpectable results, in case of mod_wsgi please use prefork daemon mode with threads=1 --~--~-~--~~~---~--~~ You received this message because you ar

Upload from client machine to server in Django 0.95

2009-04-05 Thread Mike
. Any help will be appreciated. Regards, Mike --~--~-~--~~~---~--~~ 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

Urls.py: Match a leading Question Mark

2009-09-25 Thread mike
or am I missing something? (it works fine if I were to exclude the ?, as in "product=1234" but is a pre-processed url via "re.sub" possible?) Thanks for your help, Mike --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Urls.py: Match a leading Question Mark

2009-09-25 Thread mike
Dziękują! (Thanks!) --~--~-~--~~~---~--~~ 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, send email to django-users+

Re: error with forms

2010-04-23 Thread Mike
I'm not completely sure, but it looks as though your variable 'body': body = forms.CharField(widget = forms.Textarea()) should be: body = forms.CharField(widget=forms.Textarea) with next area not as a function. http://docs.djangoproject.com/en/dev/ref/forms/widgets/#django.forms.Form.widget On

Re: Error I continue to get

2010-06-19 Thread Mike
I also get this error. I have python for windows version 2.6. I am using the standard windows xp shell. I have installed the latest version of django from the command line. How can I fix this? On Jun 11, 3:40 pm, Kenneth Gonsalves wrote: > On Friday 11 June 2010 12:05:50 Sam Lai wrote: > > > Th

Error when trying to connect to django_session

2010-01-06 Thread Mike
I am a newb to a this so please keep that in mind when reading this. I am running Ubuntu 9.10, postgreSQL 8.4, psycopg2, Django 1.1.1, and Apache 2.2. Everything works fine until I go to authenticate then I get an error. I am trying to get the authentication piece to work by using the canned temp

inspectdb question

2010-02-02 Thread Mike
. 12374 and DEFAULT CHARSET for the table is utf-8. Regards, Mike -- 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

case sensitive usernames

2007-07-11 Thread mike
Hi all, While I was writing test cases for my upcoming website, I noticed I that the contrib.auth module will happily make a user called Mike and user called mike and treat them as two separate users. Are there reasons for this? I patched my installation of django so that usernames were not

Ajax widget

2008-01-03 Thread mike
I am trying to implement the Dojo Select box into a template I am creating. I have used the formtags that is inluded in the nongselect tar package. but It seems with the development version of django the import statements {% load formtags %} no longer work, I need a way to replace the {% sel

Re: Ajax widget

2008-01-04 Thread mike
e code for the input box. This template tag is no longer valid and cannot be imported so the select row statement will no longer work On Jan 3, 8:36 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Thu, 2008-01-03 at 15:25 -0800, mike wrote: > > I am trying to implement the D

Re: Ajax widget

2008-01-04 Thread mike
ets.org/snippets/269/ > YUI:http://www.djangosnippets.org/snippets/392/ > > If neither of those suit you, contact me directly and I can send you > some other code for a YUI implementation. > > Good luck. > > Michael Trier > blog.michaeltrier.com > > On Jan 4, 2008 9:52 AM,

Jquery and form plugin

2008-01-22 Thread mike
I am trying to use Jquery's form plugin with django to submit a form with ajax. When i submit the form the data is posted and the server responds but the results are not showing up on my form. I can see from the console output of Firebug that the data is being returned, but its just not showin

Operate with privileges

2008-02-05 Thread mike
Perhaps this is a stupid question, but i was thinking of creating a django app that did a few Server administration tasks, add users, edit config files etc. Can anyone point me in the right direction as to how I would be able to execute django views with root permissions? Thx in advance. --~--~--

Re: gettext_noop usage?

2008-02-15 Thread Mike
- > > I might be dumb, but could someone shed some light on this, and show an > example of no-op'ed strings and late translation of it for the novice user? > What is the use case here? How a string is translated fro

Re: Mod_Python and Eggs

2008-04-04 Thread mike
I had this issue and was able to correct it by adding the following to my settings.py import os os.environ['PYTHON_EGG_CACHE'] = '/tmp' Hope this helps somebody On Apr 3, 7:32 am, "Jon Lathem" <[EMAIL PROTECTED]> wrote: > Graham, > > Thanks for your quick response. It was a SELinux problem. A

Email This Page

2008-06-20 Thread mike
Hello, I am working on a django app that displays call logs for our customers. I am using a print.css along with a print button that only prints the rendered information. I would like to add an "email this page" submit button. That will send an email containing all the rendered information. What

Re: Email This Page

2008-06-20 Thread mike
eperate view with an email.txt like shown here http://www.rossp.org/blog/2006/jul/11/sending-e-mails-templates/ but, that seems a waste to re-query all the information. On Jun 20, 10:21 am, "Bruno Tikami" <[EMAIL PROTECTED]> wrote: > Mike, > > I agree with Michael about the

Re: Email This Page

2008-06-20 Thread mike
it feels to me like you might be able to cache the query and > reference it in the print-view. I don't see a way to pull this off without a > separate view and template, though. > > On 6/20/08, mike <[EMAIL PROTECTED]> wrote: > > > > > the pages content come from a

Captcha example

2007-02-20 Thread Mike
Hello, Can anyone puke up a simple example of using captcha with Django forms? [I've already RTFM&N.] I installed the app code from http://code.google.com/p/django-captcha/ and noticed the test but don't see how it works with templates and extraspecially newforms (needs to be a tag library?). I

Re: Captcha example

2007-02-21 Thread Mike
Hi Joe, Thanks for taking the time to respond--that makes sense to me. I had to go all the way to Poland but finally found a working code example (Dziękuję!). Here's the link in case it's helpful for someone else: http://www.rkblog.rk.edu.pl/w/p/django-and-captcha-images/ --~--~-~--~

Re: newforms SelectDateWidget

2007-02-27 Thread Mike
The range function has an optional 'step' argument. Howzabout: SelectDateWidget(years=range(2006,1900,-1)) > But is there an easy way I can make the years display in reverse - > i.e. descending rather than ascending? --~--~-~--~~~---~--~~ You received this mess

Re: Using HTML/CSS as templates

2007-02-27 Thread Mike
It's probably a path-related issue. You might start here as a reference: http://www.djangoproject.com/documentation/static_files/ Bit o' learning curve serving CSS when starting out, in my experience, because of the way Django encourages/prods/provokes us to serve static media separately. --~

Re: direct_to_template, extra_context

2007-02-27 Thread Mike
It looks like multiple dictionaries are being passed to the view. Should 'extra_context' be included in the first one (just like the 'template' argument)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django use

Jobs Vs Opportunity - The Movie

2007-03-12 Thread mike
Jobs Vs Opportunity - The Movie www.thewealththeory.com/beyond-freedom.com This is excellent! If you haven't already watched, it check it out now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

Jobs Vs Opportunity - The Movie

2007-03-12 Thread mike
Jobs Vs Opportunity - The Movie www.thewealththeory.com/beyond-freedom This is excellent! If you haven't already watched, it check it out now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Jobs Vs Opportunity - The Movie

2007-03-13 Thread mike
Jobs Vs Opportunity - The Movie www.thewealththeory.com/beyond-freedom This is excellent! If you haven't already watched it, check it out now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Professional Sales People Wanted!

2007-03-13 Thread mike
Professional Sales People Wanted! On a scale of 1-10 How ready are you to earn over 100k income per year? Only 9's and 10's need apply. Do not apply if you are not a 9 or 10, you are only wasting your time and mine www.thenextbigboom.com/beyond-freedom --~--~-~--~~~

Personal Development Program

2007-03-13 Thread mike
Personal Development Program www.libertyleague.com/beyond-freedom At Beyond-Freedom we are dedicated to coaching others to success. However, we can only help and support people who truly want change in their life. Beyond-Freedom in association with Liberty League International provide personal d

Jobs Vs Opportunity - The Movie

2007-03-14 Thread mike
Jobs Vs Opportunity - The Movie www.thewealththeory.com/beyond-freedom This is excellent! If you haven't already watched it, check it out now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group.

Programmer Career

2007-04-11 Thread Mike
Find Your Programming Job Vacancy and resources here --> http://www.jobbankdata.com/job-programming.htm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: 0.96 login issue with cookies

2007-10-17 Thread Mike
ed by the error processing mechanism in Django/FCGI somehow screwing up the cache control HTTP headers. Regards, Mike Ivanov On Oct 17, 2:50 pm, "Robert Šmol" <[EMAIL PROTECTED]> wrote: > Hello, > I have HomePage with login bar with a form for user to log in. I use > dj

Re: 0.96 login issue with cookies

2007-10-27 Thread Mike
No, the cache was off all the time. On Oct 19, 8:44 am, web-junkie <[EMAIL PROTECTED]> wrote: > Did you activate the cache in Django? I once discovered an issue with > that.. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

dynamic translation depending on request parameter

2007-11-23 Thread mike
I need to load different translations in one site. Exact language for translations is the same, but there are differences between messages. Structure of locale looks like that: ./locale |-- en | `-- LC_MESSAGES | |-- django.mo | |-- django.po | `-- django.po~ |-- en_gb_rentals

Get Paid $$$$ for Taking Online Surveys

2007-11-26 Thread Mike
Get Paid for Taking Online Surveys Join today and receive $4 to $250 for taking online surveys that influence the development of new products and services. Check my web site and start immediately earning extra money from your own computer at anywhere by taking online surveys http://www3.sy

django admin page

2007-11-27 Thread mike
Hello this is my first post, I work the helpdesk for a small company and I am trying to design a form to keep track our customers, contact info and the reason for their calls, I would like my customer form to list links to notes for each time they called with dates, here is my currentl models.py a

django admin

2007-11-27 Thread mike
My last post was a little confusing, I have two classes a Customer class and an Issue class, I would like the customer class to display issues where the "name" of the customer field matches the "customer" field of the issues class, thus listing each customer's issues at a glance, any help would b

Re: django admin

2007-11-27 Thread mike
Roman, That is EXACTLY what I needed, thx alot. On Nov 27, 12:45 pm, "Roman Zechner" <[EMAIL PROTECTED]> wrote: > 2007/11/27, mike <[EMAIL PROTECTED]>: > > > > > > > My last post was a little confusing, I have two classes a Customer > > class

Re: django admin

2007-11-27 Thread mike
one problem, the Issues appear at the bottom of the customer form along with other blank issues, , but If I add an Issue there, and save it. It erases the issue from the issue class, On Nov 27, 1:33 pm, mike <[EMAIL PROTECTED]> wrote: > Roman, That is EXACTLY what I needed, thx alot. &

Re: django admin

2007-11-27 Thread mike
ok I can add issues if i add an admin class to my Issues class and add them from the Admin screen, but they will not save if i add them from the bottom of my customer form, I cant find anything in the documentation that addresses this On Nov 27, 1:46 pm, mike <[EMAIL PROTECTED]> wrote:

Re: django admin

2007-11-27 Thread mike
Ok, I recreated the database, and all is well, thx for the help . On Nov 27, 2:16 pm, mike <[EMAIL PROTECTED]> wrote: > ok I can add issues if i add an admin class to my Issues class and add > them from the Admin screen, but they will not save if i add them from > the bottom

Admin interface button

2007-11-28 Thread mike
I am trying to design a form using the django admin with text fields to make notes in and a drop down box with email addresses to choose. I would like to add an action button, that sends an email with the information in the forms to one of the addresses in the drop down box. I was wondering the b

Re: Django Snippets-contact form

2007-12-05 Thread mike
Gul You hit the nail right on the head...thanks a bunch. On Dec 5, 10:52 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > I doubt the problem is with base.html itself, but there might still be > a mismatch of block names. > > contact.html is expecting the following blocks to be defined in base

Re: Django Snippets-contact form

2007-12-05 Thread mike
On Dec 5, 10:36 am, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > mike napisał(a): > > > I have been trying to implement the contact form from the Django > > Snippets page found here. > > >http://www.djangosnippets.org/snippets/261/ I'm able to make it all &g

Re: Django Snippets-contact form

2007-12-05 Thread mike
if i include something like this at the top it will load the admin media, but nothing will be below it {% extends "admin/base_site.html" %} {% block content %} {% load adminmedia %} {% endblock %} On Dec 5, 10:42 am, mike <[EMAIL PROTECTED]> wrote: > On Dec 5, 10:36 am,

Re: Django Snippets-contact form

2007-12-05 Thread mike
\'Email\' appears not to be valid.','message','2','1','Field \'message\' is empty.');return document.MM_returnValue" /> {% endblock %}

Django Snippets-contact form

2007-12-05 Thread mike
I have been trying to implement the contact form from the Django Snippets page found here. http://www.djangosnippets.org/snippets/261/ I'm able to make it all work together, but the contacts.html page, is blank unless i remove the{% extends "base.html" %} part. After removing it I can see

django widget combo box

2007-12-14 Thread mike
http://code.djangoproject.com/wiki/AJAXWidgetComboBox Has anyone had any luck with this, I get to the template section and cant get past the {% load formtags %} part. I found a formtags.py from "Koders search" by googling and placed in the django templatetags folder, but keep getting this error

url.py

2007-12-18 Thread mike
I am trying to get the url.py to display my template based on the 'id' of my model, but I cannot get this to work, any help would be appreciated. I have tried the url below and also my view is below, I would like to be able to visit /admin/display//id-number and see the ticket corresponding to th

Re: url.py

2007-12-18 Thread mike
Marty...you de man!! On Dec 18, 1:20 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > It looks like you've configured the built-in admin at "/admin/", and > you're defining your custom URLs *later* in the list of URL patterns. > This means that the admin's URL configuration will see > "/ad

django.views.generic.list_detail and foreign keys

2007-12-19 Thread mike
Hello, I have built an entry form using django.views.generic.list_detail much like the one shown here, http://blog.michaeltrier.com/2007/11/23/getting-started-with-newforms The only problem is my model has a foreign key that uses edit_inline. Can anyone point me in the right direction how to get

django.views.generic.list_detail and foreign keys

2007-12-19 Thread mike
Hello, I have built an entry form using django.views.generic.list_detail much like the one shown here, http://blog.michaeltrier.com/2007/11/23/getting-started-with-newforms The only problem is my model has a foreign key that uses edit_inline. Can anyone point me in the right direction how to get

Re: django.views.generic.list_detail and foreign keys

2007-12-19 Thread mike
7;name') def __str__(self): return self.name class Issue(models.Model): issue = models.TextField(blank=True,core=True) date = models.DateField() customer = models.ForeignKey(Customer, edit_inline=models.TABULAR,related_name="Customer") def __unico

django newforms and base_fields

2007-12-20 Thread mike
Hello, I am looking for a way to auto-populate a newforms field, I would like to have the input hidden, and be auto-populated with the name field of the Customer class the Issue class is a foreign key to the Customer class can anyone point me in the right direction, any help would be appreciated,

forms.form_for_model

2007-12-20 Thread mike
anyone know how to auto assign a variable to my form field? IssueEntryForm.base_fields['customer'].widget = widgets.HiddenInput() IssueEntryForm.base_fields['customer'].widget = HELP --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: forms.form_for_model

2007-12-21 Thread mike
yForm() return render_to_response('add_edit_customer.html', {'form': form,'issues':issues,'form1':form1}) On Dec 20, 5:59 pm, rskm1 <[EMAIL PROTECTED]> wrote: > On Dec 20, 2:58 pm, mike <[EMAIL PROTECTED]> wrote: > > > anyone know how

Re: django newforms and base_fields

2007-12-21 Thread mike
thing to do. But if you must, then just use > initial to set the value. > > Michael Trier > blog.michaeltrier.com > > On Dec 20, 2007 2:32 PM, mike <[EMAIL PROTECTED]> wrote: > > > > > Hello, I am looking for a way to auto-populate a newforms field, I > >

Re: forms.form_for_model

2007-12-21 Thread mike
n't recognize that IssueEntryForm in the original post was NOT a > form instance. Corrections embedded below. > > On Dec 21, 8:48 am, mike <[EMAIL PROTECTED]> wrote: > > > > > Sorry if I was unclean, I just discovered this and I am still learning > > new

Re: forms.form_for_model

2007-12-21 Thread mike
The issues model is a foreign key to my customer model. On Dec 21, 10:40 pm, mike <[EMAIL PROTECTED]> wrote: > Thank you for your reply, I did as you suggested but when I save the > form I get the error > > (1048, "Column 'customer_id' cannot be null")

Re: forms.form_for_model

2007-12-21 Thread mike
The issues model is a foreign key to my customer model. On Dec 21, 10:40 pm, mike <[EMAIL PROTECTED]> wrote: > Thank you for your reply, I did as you suggested but when I save the > form I get the error > > (1048, "Column 'customer_id' cannot be null")

Re: forms.form_for_model

2007-12-26 Thread mike
m Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-12-21 at 06:48 -0800, mike wrote: > > Sorry if I was unclean, I just discovered this and I am still learning > > newforms, I am using forms.form_for_model and trying to get two form > > to display in my template, only 1 i

Re: forms.form_for_model

2007-12-27 Thread mike
Yes, I found your post a while back, that is where I am learning most of this, great post. I tried this and got 'ModPythonRequest' object has no attribute 'customer' I think i am close though, here is my code: else: IssueEntryForm = forms.form_for_model(Issue, fields=('issue''customer

Re: forms.form_for_model

2007-12-27 Thread mike
rm() form1 = IssueEntryForm() return render_to_response('add_edit_customer.html', {'form': form,'issues':issues,'form1':form1}) On Dec 27, 9:24 am, mike <[EMAIL PROTECTED]> wrote: > Yes, I found your post a while back, that is where I am

Re: django widget combo box

2008-01-02 Thread mike
quot;first_name" %} Line with raw html for a text input box that will call this ajax function for me. I have been googling for days with no luck. I'm using the newforms library and form_for_instance On Dec 15 2007, 9:01 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>

Re: Django, Postgres and Server Crash

2006-10-16 Thread Mike
James, Thanks for your response. I just svn update my django directory. Doesn't the latest django version reflect all the bug fixes? Do I have to check out 0.91-bugfixes? Pressing 'c' on top clears everything a little bit. One thing I think I forgot to mention is 90% of the time the server load

Re: Django, Postgres and Server Crash

2006-10-16 Thread Mike
> What are the specs of the server? Specifically, how much RAM does it > have and how fast are its disks? What processors are in the machine > (for postgres, Xeons are bad, Opterons are very, very good)? The server is rather new. 2GB of memory with a top grade Opteron (not sure which). Once agai

HttpResponseRedirect and Request Header

2006-10-27 Thread Mike
te A. How can I prevent HttpResponseRedirect from forwarding the header it was supplied with? Thank you, Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: HttpResponseRedirect and Request Header

2006-10-27 Thread Mike
Hi Sam, Allow me to clarify my question: User clicks on a link(pointing to B) on site A Site B is implementing a HttpResponseRedirect to site C Site C recieves the request with the header sent from A to B. That is, it has no idea B exists. I don't want C to know about A :)

Debugging with Winpdb

2006-11-07 Thread Mike
Hello, I've been trying to debug a Django sample application with Winpdb, but haven't been successful thus far. Can anyone who's able to do this please share your secret? ;) I'm using the GUI and have tried the "Attach" option but see no processes available, and the "Launch" option which hangs a

Re: Order_by problems

2006-11-08 Thread Mike
Hi L, Could it be that the 'W' in 'Word' in your order_by attribute is in upper-case? - Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Debugging with Winpdb

2006-11-10 Thread Mike
Anybody debugging Django apps successfully with Winpdb? --~--~-~--~~~---~--~~ 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 t

Re: Large scale Django deployment - advice needed

2007-01-27 Thread Mike
Jason, Have you seen Chapter 21 of The Django Book, just released a few days ago? Chapter 21: Deploying Django http://www.djangobook.com/en/beta/chapter21/ It discusses load balancing and performance, and mentions the following: "At this point, we've now broken things down as much as possibl

Newforms and generic views

2007-01-29 Thread Mike
Hi folks, Can anyone share information regarding the current timeline and plans for newforms and integrating newforms with generic views? I did look over the website and searched the archives of the dev group but didn't see a recent estimate. I'd gladly help out, but I'm somewhat new to Djang

Re: Newforms and generic views

2007-01-29 Thread Mike
On Jan 29, 4:57 pm, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote: > On 1/29/07 3:28 PM, Mike wrote: > > > Can anyone share information regarding the current timeline and plans > > for newforms and integrating newforms with generic views?Generally we don't > >

Re: Newforms and generic views

2007-01-29 Thread Mike
Hey Jacob, Thanks for your pointer regarding error highlighting--Igotsit. > Actually, though, there hasn't been anyone who's (so far) volunteered to work > on bring newforms into generic views. So, if that's something you'd like to > work on, we'd all love it if you jump on over to django-dev an

Re: E-mailing forms

2007-01-31 Thread Mike
There's also a documentation section for this topic located here: Sending e-mail http://www.djangoproject.com/documentation/email/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Easy way to determine runtime environment?

2007-02-09 Thread Mike
Hello, > Is there an easy way to adjust the media location based on the > server environment? Perhaps the following link will help. Check out the code from Mikko Ohtamaa in the Comments section. http://www.djangoproject.com/documentation/modpython/ --~--~-~--~~~---

Re: confused again: a "home page" can't be some special case

2006-06-06 Thread Mike
Rudolph and James Bennett, did you create your own custom templatetags? If so, how did you go about doing it? I've been working on building and adding menus to django templates that are populated with other content as well, and I'd be interested in learning about your approach. --~--~-~-

Menus parent/child foreign key dropdown too big

2006-07-12 Thread Mike
So here's the deal. I have Menus and MenuItems: class Menu(models.Model): name = models.CharField(maxlength=200) class MenuItem(models.Model): menu_id = models.ForeignKey(Menu, blank=False, null=False, edit_inline=models.TABULAR, num_in_admin=3) parent = models.ForeignKey('self', nul

How do I parse XML in a Django view?

2006-08-18 Thread Mike
, handler.tags[tag]) return render_to_response('templates/generic_output.html', {'output':datum}) We have also tried using minidom with no success. Any pointers in the right direction would be incredibly helpful. Thanks, Mike --~--~-~--~~~---

Re: How do I parse XML in a Django view?

2006-08-18 Thread Mike
Please bear with me as I continue to learn and struggle. We installed ElementTree and started tinkering around with it, but we are still having problems when we try to have the view pass anything to the templates. The code has been stripped down to: from sputnik.utils.elementtree.elementtree impo

Re: How do I parse XML in a Django view?

2006-08-18 Thread Mike
Yes to both. I'm assuming the url configuration is correct because if I attempt to use regular file reading and writing everything works fine and if I change the name of the file I'm parsing to something that doesn't exist, the page throws an error. The file is readable and writeable (for test pur

Is django authentication right for me?

2006-01-02 Thread Mike
and so forth. What would you do? Utilize Django's or create your own for my situation? Thanks, Mike

How to simplify my views?

2006-01-02 Thread Mike
ate. Ideas are appreciate here, Regards, Mike

Re: Undo in Django

2006-01-04 Thread Mike
I'd say, in your 'change history' table, place a field and save the state of all effected data before the actual change is frozen. Good luck, Armin

Django DB Design Question (help please!)

2006-01-09 Thread Mike
must be an easier way to do this with Django, or if not I think it's a good feature to add! I like approach #2 better. Regards, Mike

  1   2   3   4   5   6   7   8   9   10   >