mod_python errors in production deployment. apache vs django

2008-09-16 Thread NoviceSortOf
apache conf file is configured as * SetHandler python-program PythonPath "['/var/www'] + sys.path" PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE bookstor.settings PythonOp

Re: mod_python errors in production deployment. apache vs django

2008-09-16 Thread NoviceSortOf
Thanks Karen Now having fixed the curly quotes and loaded psycopg2, I'm on to another set of problems. ** Mod_python error: "PythonHandler django.core.handlers.modpython" Traceback (most recent call

Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread NoviceSortOf
On Sep 16, 10:33 pm, "R. Gorman" <[EMAIL PROTECTED]> wrote: > What is in your urls.py file? That's where your urlpatterns should be > stored. > R. my url.py is simply from django.conf.urls.defaults import *

Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread NoviceSortOf
Ok finally got this resolved there were several problems. Following the book the Definative Guide to Django and online documentation somehow did not eliminate several snags, I'd like to post my findings here. 1. postgresql psycopg2 had best be installed on server and tested before moving onto

Re: mod_python errors in production deployment. apache vs django

2008-09-17 Thread NoviceSortOf
On Sep 17, 4:54 pm, "R. Gorman" <[EMAIL PROTECTED]> wrote: > Glad to hear you have some of your setup up and running. > > Your comment on defining fields in the models surprised me though. > All the fields for your models in Django should start with model, > followed by the field-type, as the docu

How to trigger html traceback and verbose django environmental variable list

2008-09-18 Thread NoviceSortOf
Does anybody know how to return the full debug list of settings and django related variables from something like www.mysite.com/mysite/admin or www.mysite.com/mysite/ I did receive this comprehensive list traceback a couple of times that listed a comprehensive list of stuff like... Request info

get_template problem

2008-09-26 Thread NoviceSortOf
this works >>>from django.template import loader >>>loader.get_template('myfile.html') but how do i get this syntax to work? >>>get_template('myfile.html') --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: get_template problem

2008-09-29 Thread NoviceSortOf
/H > > 26 sep 2008 kl. 15.44 skrev NoviceSortOf: > > > > > this works > > >>>> from django.template import loader > >>>> loader.get_template('myfile.html') > > > but how do i get this syntax to work? > > >>>>ge

Django Admin - Does not see templates, images or templates.

2008-10-06 Thread NoviceSortOf
I'm using Linux Fedora, Apache and mod_python. I have 3 dashboard.css candidates on my system but Django admin will not see any of them... - # locate dashboard.css [RETURNS] /var/www/Djan

Re: Django Admin - Does not see templates, images or templates.

2008-10-07 Thread NoviceSortOf
Thanks the link did the trick. The admin page though still loads rough, sometimes taking 3 screen refreshes to get past a "No module named urls" error - then it finally loads. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Django Admin - Does not see templates, images or templates.

2008-10-07 Thread NoviceSortOf
Yes I restarted, but I also noticed in urls.py 2 distinct suggested admin url patterns... (r'^admin/', include('django.contrib.admin.urls')), # (r'^admin/(.*)', admin.site.root), Commenting out the second entry seems to correct the admin_urls problem. Why does the documentation suggest (r'^a

Re: Django Admin - Does not see templates, images or templates.

2008-10-08 Thread NoviceSortOf
> What version of Django are you running?  These two patterns are from > different Django versions.  The first, with the include of > 'django.contrib.admin.urls' was the old one -- that file does not exist in > Django 1.0.  The 2nd pattern, referring to 'admin.site.root', is what should > be used

Re: Django Hosting Survey

2008-10-08 Thread NoviceSortOf
(ROSS) you say 256 RAM but I'm curious if you are running Ubuntu server or some other distro? Is 256 RAM sufficient for Ubuntu or should one allow for more headroom? I'm leaning towards the Slicehost or Lincode type solution. Because in the past with frameworks and platforms we have learned the

Re: Django Admin - Does not see templates, images or templates.

2008-10-08 Thread NoviceSortOf
> Of the other two, one claims to be Django 1.0 and one claims to be > Django SVN trunk. Assuming they are what they claim to be, which one > is the latest depends on whether the trunk checkout is from before or > after 1.0. You might get a clue by looking at django/__init__.py in > both and che

Registration - adding first_name and last_name to form.

2008-10-10 Thread NoviceSortOf
I'm trying to add first_name and last_name to the registration form. Under class RegistrationForm(forms.Form) I add first_name = forms.RegexField(regex=r'^\w+$', max_length=30, widget=forms.TextInput(attrs=attrs_dict), label=

Re: Registration - adding first_name and last_name to form.

2008-10-11 Thread NoviceSortOf
These lines in forms.py --- 92. new_user = RegistrationProfile.objects.create_inactive_user(username=self.cleaned_data['username'], 93. password=self.cleaned_data['password1'], 94. first_name=self.cleaned_data['first_name'],

AUTH_PROFILE_MODULE setting does not relate at all to actual reg file being populated

2009-01-19 Thread NoviceSortOf
In my settings file I've set AUTH_PROFILE_MODULE = "myproject.myprofiles" Looking at my database, I've something called "registration_registrationprofile" I've defined myproject.myprofiles in models.py and the file clearly exists. Instead though "registration_registrationprofile" is the file t

Re: AUTH_PROFILE_MODULE setting does not relate at all to actual reg file being populated

2009-01-19 Thread NoviceSortOf
I'm rewording my question for clarification. * Where is the model file for "registration_registrationprofile" ? _If I go to ...site-packages/registration where I would assume the models.py file would contain the definition for this table, it does not exist there. * Why does the "reg

Re: AUTH_PROFILE_MODULE setting does not relate at all to actual reg file being populated

2009-01-19 Thread NoviceSortOf
OK. Please correct me if I'm wrong The "registration_registrationprofile" is simply a reference table created during the process of creating an inactive account. * If that is the case then how do I simply create a related record to users in "myproject.myprofiles" as set in settings.py as AU

Re: AUTH_PROFILE_MODULE setting does not relate at all to actual reg file being populated

2009-01-19 Thread NoviceSortOf
> It isn't at all clear to me from what you have posted what difficulty you > are having in using your own auth profile module.  I do not understand why > the presence of the django-registration table would be causing any trouble. > At any rate, since you are already using django-registration, you

Re: AUTH_PROFILE_MODULE setting does not relate at all to actual reg file being populated

2009-01-19 Thread NoviceSortOf
> I'm feeling a bit dense here. What is it, exactly, that isn't working? > What have you done, what did you expect, and what happens instead? > AUTH_PROFILE_MODULE isn't fundamentally broken, so some specifics on what > isn't working for you would help someone to help you fix whatever it is that

Re: AUTH_PROFILE_MODULE confusion

2009-01-20 Thread NoviceSortOf
Thanks creecode: I've read those docs in the past, but they do help in further refreshing my memory, and further refining the question. * django-registration is installed and works great, the only problem I have is that somehow I need to populate the profiles table defined as AUTH_PROFILE_M

Re: AUTH_PROFILE_MODULE confusion

2009-01-20 Thread NoviceSortOf
* Objective create and save a row/record to the table defined as AUTH_PROFILE_MODULE via the instructions in models.py I'll demonstrate what I've tried to do so far, all which seemed logical but had no effect other than adding a row to auth.user and registration.registrationprofile. my custom

Re: AUTH_PROFILE_MODULE confusion

2009-01-21 Thread NoviceSortOf
creecode: we cross posted yesterday. i tried your suggestion about using signal but could not get it to add records to the designated user profile. for now i've reinstalled registration upgrading to .06 as well as the matching userprofile profiles .06 Still am encountering hours of problems ge

Ongoing problems with django-registration installation.

2009-01-21 Thread NoviceSortOf
Initially my problem was getting django-registration to add/update new users to my custom designed mysite.UserProfile table. Other than that django-registration worked o.k. sent notifications and so on, but without it giving me control of our custom user profile it was impossible to move forward

Re: Ongoing problems with django-registration installation.

2009-01-21 Thread NoviceSortOf
update to the above - running manage.py syncdb DID create the mysite.myproject.userprofile with all the userprofile.models base fields included. on completion of the registration form though i still get The following error * Request URL: http://www.rareasianbooks.com/accounts/register

Re: Ongoing problems with django-registration installation.

2009-01-21 Thread NoviceSortOf
> 0.7 is where full Django 1.0 compatibility was included.  I'm assuming you > are using Django 1.0 or higher?  The error related to 'alnum_re' you mention > later looks to be the result of django-registration using a core validator > thingy -- these were all removed prior to Django 1.0, so if you

Re: Ongoing problems with django-registration installation.

2009-01-21 Thread NoviceSortOf
Karen: Thanks again, you are right I had the userprofile installed instead of django-profiles installed. I went to the bitbucket django-registration link you mentioned before and downloaded the django-profiles linked there and installed it. I made a small modification to mysite.myproject.models

Re: Ongoing problems with django-registration installation.

2009-01-22 Thread NoviceSortOf
Django 1.0/django-registration .07 problems continue *** Issue 1 - No module named urls occuring during registration form completion. Via the methodology listed by Karen above I was able to trace my missing url

Re: AUTH_PROFILE_MODULE confusion

2009-01-22 Thread NoviceSortOf
creecode: I've tried your 2 suggestions with one with no results, and the second suggestion perhaps i did not understand enough of where the code should go to make it work. ** Trigger adding instanc

Re: AUTH_PROFILE_MODULE confusion

2009-01-22 Thread NoviceSortOf
Although unmentioned in the django-registration docs, reading the django-profiles code I see a method called create_profile...which is intended for this purpose, for now I'll try giving that a try. def create_profile(request, form_class=None, success_url=None, template_name='p

Re: Ongoing problems with django-registration installation.

2009-01-22 Thread NoviceSortOf
It seems to me the that automatic mechanism mentioned in the docs does not exist in django-registration but in its component django-profiles, reading the source code I see this... def create_profile(request, form_class=None, success_url=None, template_name='profiles/create_pro

problems getting urls to import

2009-01-22 Thread NoviceSortOf
Looking at mysite.myproject.urls I have... urlpatterns += patterns('', (r'^profiles/', include ('profiles.urls')), ) But can't get the profiles.urls to import My URLconf list includes # ^accounts/ ^activate/(?P\w+)/$ # ^accounts/ ^login/$ # ^accounts/ ^logout/$ # ^accounts/ ^register/$ # ^acco

Anyway to see full UrlConf list of available imported urls?

2009-01-22 Thread NoviceSortOf
* Is there a way to see a full URLConf list of all the imported URLs, in an application? This seems it would be a big debuging help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: AUTH_PROFILE_MODULE confusion

2009-01-23 Thread NoviceSortOf
SEE ALSO : a core method in django get_profile() django/contrib/auth/models.py and as used in profiles/views.py profile_obj = request.user.get_profile() --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: Anyway to see full UrlConf list of available imported urls?

2009-01-28 Thread NoviceSortOf
I can't get this code to work perhaps I'm not importing something but here is what I'm doing. from mysite root dir import settings import urls from django.core.urlresolvers import get_resolver # i then do a little checking print r dir(r) # verifies _get_url_patterns is in r module ['class',..

Re: Anyway to see full UrlConf list of available imported urls?

2009-01-28 Thread NoviceSortOf
in the end i found django-command-extensions ESSENTIAL and INDISPENSIBLE in tracking and getting my head around URLConf. this extends django manage.py with a function called show_urls after you have installed django-command-extensions, all you have to do is type python manage.py show_urls to

Re: How do I correctly format a Querydict derived list in a url?

2009-01-31 Thread NoviceSortOf
> > > myurl.com/activities/[u'ireland', > > > u'nireland']/: what I really want > > > is: > > > > /activities/ireland-nireland/ > I'm not sure if any of this is the 'correct' way but it likely will work. Try a combination of python's eval() and str()

Send_mail usage on development server.

2009-02-23 Thread NoviceSortOf
Note: Ubuntu Hardy development server. I've having problems getting Send_mail to work on my development server. It works fine on the production server but when I attempt to send on the development server I get the following error. * /usr/lib/python2.5/smtplib.py in connect, line 296 -

Re: Send_mail usage on development server.

2009-02-24 Thread NoviceSortOf
Thanks for these solutions, I didn't realize Email-host could be used for any external email server, although unwittingly I may of tried it earlier and had authentication problems. The python dummy email server solution you point to... "python -m smtpd -n -c DebuggingServer localhost:1025" also

Managing over 100 static booleanfield fields Model, Form Class and so on. Profiles process

2009-02-25 Thread NoviceSortOf
We have over 100 Yes/No questions asked in our registration process These questions are mostly static (requiring minor modification every 5-10 years), we don't especially need a dynamic data driven solution. These Yes/No questions are basically the user informing us of their specific interests IE

Re: Managing over 100 static booleanfield fields Model, Form Class and so on. Profiles process

2009-02-25 Thread NoviceSortOf
This is what we have been doing for over 10 years now via the internet, and over 20 years via mail and telephone... its a management requirement that will not change. The questions are broken into sections easy to navigate on the page, the 'questions' in this instance is simply having them check

Re: Managing over 100 static booleanfield fields Model, Form Class and so on. Profiles process

2009-02-25 Thread NoviceSortOf
Briel, I see the userfriendlyness or even consideration in what you are saying, looking at the specs, actually users checkboxing us their interests is an optional part of registration process, we still we need to do it somehow. Gordy, I see the logic in what you are saying, although unclear on ho

Different Database object behavior on Production and Development servers.

2009-03-09 Thread NoviceSortOf
On the command line I'm unable to get a coherent return on my data object filters or fetches, Instead of getting any detail I get a dictionary with nothing but the words UserProfile, UserProfile object where Field name and value should be. ie. >>>g = UserProfile.objects.filter(email = "dljonss

Re: Different Database object behavior on Production and Development servers.

2009-03-09 Thread NoviceSortOf
Ramiro: You put me onto something, the only model that returns coherent data on the command line has str defined for model ie. class Book(models.Model): title = models.CharField(max_length=100) authors = models.ManyToManyField(Author) publisher = models.ForeignKey(Publisher)

Re: Different Database object behavior on Production and Development servers.

2009-03-10 Thread NoviceSortOf
It's clear now that __str__(self) or __unicode__ return a usable string to the view. But this does not on the surface appear to be a workable instance of the model itself, that would return fields that I can work with in the template...and/or i haven't figured how to get a handle on it. ie... t

Re: Different Database object behavior on Production and Development servers.

2009-03-10 Thread NoviceSortOf
It's clear now that __str__(self) or __unicode__ return a usable string to the view. But this does not on the surface appear to be a workable instance of the model itself, that would return fields that I can work with in the template...and/or i haven't figured how to get a handle on it. ie... t

Re: Different Database object behavior on Production and Development servers.

2009-03-10 Thread NoviceSortOf
Thanks Malcom, I re-read the links you sent along on forms and formsets. I'm now working with a form but instead of ___ > > [ ] Stevenson Collected Works > > [ ] Stevenson Treasure Island > > [ ] Stevenson Wild West Stories > > [Submit] I

Getting form and formsets to work with templates

2009-03-10 Thread NoviceSortOf
Glad to report taking a closer look at the code and documentation and a few minor edits of the code --now both single model instance and formset iterable html display are working. I did notice when looping with formset my html syntax had to be changed from "field" to "form" and from "form" to "f

Re: Different Database object behavior on Production and Development servers.

2009-03-10 Thread NoviceSortOf
> and when I try changing it to > {% for field in formsets %} > i get an error message saying formset is not iterable I was able to get closer the results I want by simply changing the html template from > {% for field in forms %} to {% for form in formset.forms %} {{ form.selected }}{{ form

Re: Different Database object behavior on Production and Development servers.

2009-03-10 Thread NoviceSortOf
Alex: I tried another custom widget method earlier today without any effect, then I tried yours as outlined in your blog, there are no errors but there is no change in how the field is displayed. It makes me wonder if there is another step involved (CSS?) with this, or if there is something I mu

Do fields in html templates have to be displayed in {% for loops?

2009-03-12 Thread NoviceSortOf
In my html template i have something like {% for field in form %} {{ field.label_tag }} {{ field }} {% endfor %} Which loops and displays the field name and field value in the form. On smaller forms, I would prefer to do this manually w/o the loop by saying something like. ... {{

Do fields in html templates have to be displayed in {% for loops?

2009-03-12 Thread NoviceSortOf
In my html template i have something like {% for field in form %} {{ field.label_tag }} {{ field }} {% endfor %} Which loops and displays the field name and field value in the form. On smaller forms, I would prefer to do this manually w/o the loop by saying something like. ... {{

Do fields in html templates have to be displayed in {% for loops?

2009-03-12 Thread NoviceSortOf
In my html template i have something like {% for field in form %} {{ field.label_tag }} {{ field }} {% endfor %} Which loops and displays the field name and field value in the form. On smaller forms, I would prefer to do this manually w/o the loop by saying something like. ... {{

Do fields in html templates have to be displayed in {% for loops?

2009-03-12 Thread NoviceSortOf
In my html template i have something like {% for field in form %} {{ field.label_tag }} {{ field }} {% endfor %} Which loops and displays the field name and field value in the form. On smaller forms, I would prefer to do this manually w/o the loop by saying something like. ... {{

How to say Hello "Somebody" in a Django form. Displaying data context values as non-input.

2009-03-16 Thread NoviceSortOf
I just want to say Hello Mary in my HTML code pulling Mary's username from the request.data. I've dug through the documentation and through this group, but am still baffled by what seems the inability of Django to allow someone to display a value in some format other than an input variable of a

How to say Hello "Somebody" in a Django form. Displaying data context values as non-input.

2009-03-16 Thread NoviceSortOf
I just want to say Hello Mary in my HTML code pulling Mary's username from the request.data. I've dug through the documentation and through this group, but am still baffled by what seems the inability of Django to allow someone to display a value in some format other than an input variable of a

Re: How to say Hello "Somebody" in a Django form. Displaying data context values as non-input.

2009-03-16 Thread NoviceSortOf
Thanks for your responses, they have helped. I've read the documentation many times, and only resort to groups after re-reading what I can find in the docs, testing various logical solutions, digging through groups and finally confering with a 3rd party book I've here on Django. If all else fails

Re: How to say Hello "Somebody" in a Django form. Displaying data context values as non-input.

2009-03-17 Thread NoviceSortOf
Looking at the django document ref-forms-api Brian mentioned above from the python command line its clearly explicit that data passed as form = FormClass(data) only creates input fields. I get that but what I don't get is why the same value passed in render_to_response is passable as a string. (I

Re: How to say Hello "Somebody" in a Django form. Displaying data context values as non-input.

2009-03-17 Thread NoviceSortOf
Thanks everybody, the discussion has been very helpful. I've double checked my code, and have found passing the variable to render_to_response has different behaviour depending on how if the data is passed as data via form_class(data) or if passed directly in render_to_response. ie. in views.py

Using

2009-03-18 Thread NoviceSortOf
We have a web form where the enduser clicks on a link and is moved to different parts of the page. With the previous 3 generations of the site, we simply did something like the following . ...in html to mark the spot ...in html to jump to the spot. < href="/mypage#top_of_page"> Now with djan

Re: Using

2009-03-18 Thread NoviceSortOf
Thanks for the answer... Looking closer and testing direct on the URL Navigation bar using cut and paste figured out the following A slash "/" between mypage/#top makes all the difference. * this will reload the page, and go to the anchor. http://127.0.0.1:8000/myproj/mypage#top *this will jus

Is there a Country select feature in Local Flavors forms addon?

2009-03-24 Thread NoviceSortOf
I'm looking at using the USStateSelect from from django.contrib.localflavor.us.forms, I'm curious though if there an comparable CountrySelect object anywhere. Please advise. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Is there a Country select feature in Local Flavors forms addon?

2009-03-25 Thread NoviceSortOf
What I've done in this case is rather than using local flavor is create a file called mysite.myproject.choices.py which includes country, state and all other questions in the form. Its a major improvement and cleanup on the html to say the least. Putting the choices in a separate .py file is also

Controlling html display of Charfield length on forms...(newforms?)

2009-03-26 Thread NoviceSortOf
It would seem natural that there would be a length or size parameter on something in forms and/or models Charfield to control the html display of the field length. ie. firstname = forms.CharField(max_length=20, size = 4) I've found this hack discussed to the fields.py [link below] but it dates

Mysterious "=32" for all strings extracted from list showing up via send_mail

2009-03-26 Thread NoviceSortOf
My objective is to send a clean list of field names and values via email after the completion of a form in Django. When formating an email message after extracting a list of field names and values from a list i get a string that prints something like this. $print(message_str): ... name="Bill Jo

Re: Mysterious "=32" for all strings extracted from list showing up via send_mail

2009-04-02 Thread NoviceSortOf
Thanks that explains it fully --~--~-~--~~~---~--~~ 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 dj

Re: Controlling html display of Charfield length on forms...(newforms?)

2009-04-02 Thread NoviceSortOf
text = forms.CharField(label="text", max_length=10, widget=forms.TextInput( attrs={'size':'10', 'class':'inputText'})) Thanks Ayaz the above works perfectly. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Problem with in long text fields in templates

2009-04-20 Thread NoviceSortOf
I've a template that displays descriptions of books. The descriptions are long text fields usually containing 1-3 paragraphs of text. Inside the text description during data entry tags are placed to indicate line breaks. When attempt to using {{ book.description }} in the template, it outputs

Re: Problem with in long text fields in templates

2009-04-20 Thread NoviceSortOf
By digging around here in this group I found an answer in using {{ book.description|safe }} --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Trouble Getting a distinct query set.

2009-04-21 Thread NoviceSortOf
I'm attempting to get a unique list from a django sql query using the distinct() function, but it does not seem to filter the redundancies.. For example I do a query for Moby Dick and it returns the query set named results1 as... qset= (Q(title__icontains='MOBY DICK')) results1 = Titles

Is there a bug in queryset distinct() filtration in Postgre SQL?

2009-04-21 Thread NoviceSortOf
I've tried various permuations of filters and approaches in attempting to get unique/distinct results on a django query with postgres data to no avail. Using distinct() has no effect on queries in the following examples... qset= (Q(title__icontains='MOBY DICK')) results1 = books.objects.f

Re: Is there a bug in queryset distinct() filtration in Postgre SQL?

2009-04-27 Thread NoviceSortOf
Thanks for the as_sql() function as can now can see the SQL detail. Which reveals a problem in getting DISTINCT to draw from a fields or fields that can in fact return the unique result of the query. Perhaps it is my usage of the function so I'm listing an examble below. To further simplify my e

Re: Is there a bug in queryset distinct() filtration in Postgre SQL?

2009-04-27 Thread NoviceSortOf
Thanks Malcom... Simply adding values() to the query with author and title to the search worked perfectly in limiting the SQL DISTINCT criteria to the relevant fields, Using... results = Titles.objects.values('author','title').filter(qset).order_by ().distinct() Django provides this elegant an

Re: environment variable DJANGO_SETTINGS_MODULE is undefined

2009-05-09 Thread NoviceSortOf
I'm not the world's leading expert -- but today I've solved the problem inside of my current python shell using os.environ.keys() I'll attempt to outline the basics, ">>>" indicates what i typed on the python shell command line "$" indicates what echoes back >>>import os # now to see what envi

Re: mymodel.save() does not work in django but works in python shell

2009-05-11 Thread NoviceSortOf
An observation I've made it that django does update the related sequence_id table of the table but does not add a row to the table. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

mymodel.save() does not work django view but works in python shell

2009-05-11 Thread NoviceSortOf
.save() is not working for me either with models or with forms in django. I'll start with a simple example, on a single non related table. from views.py def testit(): from myproject.models import NewCust p1 = NewCust() ## Create blank instance p1.zipcode = '222' ##

Re: mymodel.save() does not work in django but works in python shell

2009-05-11 Thread NoviceSortOf
Thanks for your reply, I'm thinking and working outloud on the answers that follow, I've a solution sort of but remain mystified as to why and how it works. > How are you deciding it's not working? via pgAdminIII where I can see the sequence table being incremented + 1 on every django save but

Re: mymodel.save() does not work django view but works in python shell

2009-05-11 Thread NoviceSortOf
> Michael I appreciate your answer... I omited in my code example was the assert False that was being used to debug the problem, so intuitively you were right something was wrong with the code With the assert False though it was bringing up the debugger and I could view the variables. Without t

Re: formfield_overrides for Auth.User?

2009-09-29 Thread NoviceSortOf
I think somebody had a module that worked as wrapper for this, but I can't find it. As well I'd like to use email addresses for username, since we have a legacy system with over 6000 entries, we need a way they can continue using their email addresses somehow. On Sep 20, 6:24 pm, Brandon Taylor

Re: formfield_overrides for Auth.User?

2009-09-29 Thread NoviceSortOf
Perhaps check this link. http://www.djangosnippets.org/snippets/74/ --~--~-~--~~~---~--~~ 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 unsubscr

500.html does not load

2009-10-21 Thread NoviceSortOf
Although I have 500.html in my site-packages/django/contrib/admin/templates folder 500.html does not appear when it should, below see my errors (I've included the traceback items below). Is there something else I need to configure to get 500.html to load? Mod_python error: "PythonHandler django

Re: 500.html does not load

2009-10-22 Thread NoviceSortOf
>> Traceback error : TemplateDoesNotExist: 500.html Thanks for the note Akonsu, I'm looking at my template settings in settings.py on my production server and don't see any anomalies. As well all my other templates load -- so I'm not sure where else to go to trouble shoot this. TEMPLATE_LOADERS

HTML Frames and Django Template include

2010-07-06 Thread NoviceSortOf
I would like to use html frames in Django but my initial experiements with it have not worked out. * Is there anyway to combine HTML frames into a Django template {% include t? * I definitely need Django Context on the right side of the frame, the left side is strictly navigational and of st

How to record/capture IP address of user/registrant in Django

2010-07-06 Thread NoviceSortOf
I would like to record the IP numbers of persons registering on our Django driven site. The IP can simply be recorded in the form generated and sent to us during the registration process, as we have custom notifiers sent to us whenever somebody registers. But I'm wondering in the registration proc

Re: How to record/capture IP address of user/registrant in Django

2010-07-07 Thread NoviceSortOf
nary request.META contains the Key: > REMOTE_ADDR which contains the ip. You would access it as follows: > : > > request.META['REMOTE_ADDR'] > > More information on the META dict can be found > at:http://docs.djangoproject.com/en/dev/ref/request-response/#django.htt

Django documentation search not working

2010-10-02 Thread NoviceSortOf
I used to be able to go to the following link and seach django documents. http://docs.djangoproject.com/en/dev//search/ >From there I could search anything from 'widgets' to 'login()' and find the related document/page discussion that time. Now on that page search yields no results irregardless

Re: Django documentation search not working

2010-10-07 Thread NoviceSortOf
Steve: Thanks, the problem must be Firefox plugin I'm running because Opera works just fine. Thanks for the suggestion. -- 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 unsu

Multiple Check Boxes - Single Choice w/ CheckboxSelectMultiple?

2010-10-09 Thread NoviceSortOf
I'm using the following in a form to allow the user to input choices on field named frequency. sub_freq = forms.ChoiceField(choices=SUB_FREQ, widget=forms.CheckboxSelectMultiple) This gives me a list of checkboxes and I check all of the checkboxes Is there anyway to limit the enduser to only c

[SOLVED] Re: Multiple Check Boxes - Single Choice w/ CheckboxSelectMultiple?

2010-10-09 Thread NoviceSortOf
Thanks Russ, works like a charm. -- 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...@googlegroups.com. For m

Re: anybody tried web2py and gone back to Django?

2010-02-19 Thread NoviceSortOf
As a newbie of sorts I started by trying out both Web2Py and Django at the same time. I found Web2Py to somehow be more elegant, and in fact liked the coding style in the source better that what I found in Django, or can say at least I preferred the structure and format of the code I saw. The docu

Re: anybody tried web2py and gone back to Django?

2010-02-19 Thread NoviceSortOf
As a newbie of sorts I started by trying out both Web2Py and Django at the same time. I found Web2Py to somehow be more elegant, and in fact liked the coding style in the source better that what I found in Django, or can say at least I preferred the structure and format of the code I saw. The docu

Re: running projects on the back of a base URL and having issues with the homepage

2010-12-15 Thread NoviceSortOf
On Dec 15, 8:08 am, mongoose wrote: > > I'm trying to run projects on the back of it. For > > examplehttp://baseurl.com/mongoose/ > > The projects run but the URL don't work properly because they all > > reference the base url. So for 'About Me' page it points > > tohttp://baseurl.com/aboutinste

Controlling File Downloads.

2010-12-15 Thread NoviceSortOf
What is the best way to allow authorized downloads to specific users in Django. We have 2 possible scenarios that could work for us. 1. A download directory where any user can download any file in the folder. or 2. Granting specific rights to specific users to download a specific file or se

query fast on command line - slow via url

2010-12-19 Thread NoviceSortOf
I'm trying to determine why our search queries return so slow. We are not doing anything fancy in our searches, simply searching for author, or title in a table of about 6000 books. http://www.rareorientalbooks.com/searchadv/ On the command line using the exact code in the views.py everything re

Is it possible have Django registration and content databases on 2 different servers?

2018-01-12 Thread NoviceSortOf
Is it possible have Django registration and content databases on 2 different servers? I would like to decouple the registration from the content management system, and am wondering if its possible to place them on 2 different servers. What caveats, guidelines and methods are available for suc

Django and wsgiref simple_server.py line 33

2016-11-30 Thread NoviceSortOf
REF: /usr/lib64/python2.7/wsgiref/simple_server.py", line 33, On a fresh install of Python 2.7 and Django 1.6.12 attempting to resolve the following error. When running... python manage.py runserver 0.0.0.0:8000 And then loading a page on a browser I get the following. *

wsgiref - When does the complexity of question require posting to the Developers or other forums?

2016-12-01 Thread NoviceSortOf
Hi All, After hours of looking for solutions, here on Stackoverflow, GitHub, Django site and other forums, and seeing that at least 2 other posts related to what per web chatter appears to be a known bug in Django and the WSGI package, I'm wondering where to turn for useful advice regarding w

Re: wsgiref - When does the complexity of question require posting to the Developers or other forums?

2016-12-02 Thread NoviceSortOf
re.AuthenticationMiddleware', 'django.middleware.transaction.TransactionMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware')Traceback:File "/usr/lib/python2.7/site-pack

Re: wsgiref - When does the complexity of question require posting to the Developers or other forums?

2016-12-02 Thread NoviceSortOf
se > >self.status.split(' ',1)[0], self.bytes_sent > >AttributeError: 'NoneType' object has no attribute 'split' > > > **** > > > > > > > > > > *From:* d

  1   2   >