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

Solved Re: NoReverseMatch at /registration/password/change/

2017-09-26 Thread NoviceSortOf
rsion upgrades being a non-trivial task. Thanks On Wednesday, September 20, 2017 at 2:03:27 PM UTC+2, NoviceSortOf wrote: > > > ...When attempting to use our > template/registration/password_change_form.html > > While Login, request password, logout and related functions are

NoReverseMatch at /registration/password/change/

2017-09-20 Thread NoviceSortOf
...When attempting to use our template/registration/password_change_form.html While Login, request password, logout and related functions are working without a problem. When using password change we get the following error "NoReverseMatch at /registration/password/change/" [SEE.: Full traceb

Re: Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1 to 1.6?

2017-05-16 Thread NoviceSortOf
d 1.9 and > haven't tried to go to 1.11. > > Good luck > > *Connected by Motorola* > > > NoviceSortOf > wrote: > > > It's said here 1.11 is the recommended version of Django. > > Our upgrade from 1.1 to 1.6 took much more time that expected, > and mana

Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1 to 1.6?

2017-05-16 Thread NoviceSortOf
It's said here 1.11 is the recommended version of Django. Our upgrade from 1.1 to 1.6 took much more time that expected, and management does not want to upgrade again. In terms of best practice though I'd like to push for it. * Is an upgrade from 1.6 to 1.11 as complicated as migrating from 1.1

Re: Trouble deploying csrf in Django 1.6

2017-05-16 Thread NoviceSortOf
eware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'djangosecure.middleware.SecurityMiddleware', ) On Mond

Trouble deploying csrf in Django 1.6

2017-05-15 Thread NoviceSortOf
I'm having trouble deploying csrf in Django 1.6 When I enable csrf in settings either we get a Django error or accounts can't login. Are there any special considerations for deploying csrf protection in 1.6? I heard there was a utility for checking csrf in Django, where can I get that utilit

After upgrading 1.1 to 1.6 users with old passwords can log on new users can not log on.

2017-04-30 Thread NoviceSortOf
After upgrading from 1.1 to 1.6 all of our older registrants can logon but new registrants can not using their new passwords. Its as if Django will read the old passwords, but somehow it no longer encrypts new passwords that are readable. I do see a structural difference in the new passwords

SOLVED Erroneous links in my Django URLs - all load the home page -- not a 404 or other error.page

2016-12-22 Thread NoviceSortOf
Thanks that does the job. I'm editing subject to read as 'Solved' - Is this considered best practice in this form? On Thursday, December 22, 2016 at 2:43:23 AM UTC+1, NoviceSortOf wrote: > > > URLs not defined in my urls.py all show my home page and not a 404 missin

Re: Postgres SQL vs SQLite vs MS SQL vs MY SQL

2016-12-22 Thread NoviceSortOf
Thursday, December 22, 2016 at 12:40:17 PM UTC+1, NoviceSortOf wrote: > > > Curious what advantages if any people are finding working with DBs other > than the default SQLLite? > > We are considering migrating to MSSQL to avoid kinks/ETL involved with > having various DB back

Postgres SQL vs SQLite vs MS SQL vs MY SQL

2016-12-22 Thread NoviceSortOf
Curious what advantages if any people are finding working with DBs other than the default SQLLite? We are considering migrating to MSSQL to avoid kinks/ETL involved with having various DB backends for office and server applications, but uncertain the additional cost will be worth it or not.

Re: Erroneous links in my URLs - all load the home page -- not a 404 or other error.page

2016-12-22 Thread NoviceSortOf
s_view(template_name= "ecatalogsdnld2.html")), (r'^about.htm/$', TemplateView.as_view(template_name= "about.html")), (r'^contactus.htm/$', TemplateView.as_view(template_name= "contactus.html")), (r'^subjectslst/$', TemplateView.

Erroneous links in my URLs - all load the home page -- not a 404 or other error.page

2016-12-21 Thread NoviceSortOf
URLs not defined in my urls.py all show my home page and not a 404 missing page error. For instance www.mysite.com Naturally shows my home page. www.mysite.com/catalogs Shows the downloadable catalogs then anything goes. www.mysite.com/thisisanonsenselink or www.mysite.com/AnythingTyped

Re: Django user shows 2 users rows sql table auth_user has over 3000 rows

2016-12-21 Thread NoviceSortOf
, NoviceSortOf wrote: > > > From the command line in Python > > >>from books.models import user > >>custs = list(rusers.objects.all()) > >>print custs > >>[, ] > > From SQL > SELECT * FROM auth_user WHERE username LIKE '%TEST%' > --

Django user shows 2 users rows sql table auth_user has over 3000 rows

2016-12-21 Thread NoviceSortOf
>From the command line in Python >>from books.models import user >>custs = list(rusers.objects.all()) >>print custs >>[, ] >From SQL SELECT * FROM auth_user WHERE username LIKE '%TEST%' -- None found. auth_user has been vacuumed, and reindexed during the tests. - Where and in what schema are

Re: validate_email returns None for any or format

2016-12-21 Thread NoviceSortOf
Thanks, I can build logic on that. On Tuesday, December 20, 2016 at 2:28:48 PM UTC+1, NoviceSortOf wrote: > > > Why does validate_email return None irregardless of what is typed in? > > >>> from django.core.validators import validate_email > >>> x = validat

validate_email returns None for any or format

2016-12-20 Thread NoviceSortOf
Why does validate_email return None irregardless of what is typed in? >>> from django.core.validators import validate_email >>> x = validators.validate_email('t...@example.com') >>> print x None >>> Shouldn't it be returning True or False? -- You received this message because you are subscrib

Re: get_profile() function can not resolve keyword 'user' -- no 'user' field exists in model.py or data tables.

2016-12-12 Thread NoviceSortOf
Thanks Alex, Following the links you posted I've moved forward towards adding a custom user and getting rid of get_profile(). This process though has introduced other issues. The error occurs both when running manage syncdb and when debugging view that calls user. "AUTH_USER_MODEL refers to

Re: [ver. 1.5] Specifying custom User model (extends AbstractUser) doesn't work

2016-12-12 Thread NoviceSortOf
I've replaced the use of ForeignKey as mentioned above for models.ForeignKey(settings.AUTH_USER_MODEL). But I still get the following syncdb errors. *** CommandError: One or mor

get_profile() function can not resolve keyword 'user' -- no 'user' field exists in model.py or data tables.

2016-12-07 Thread NoviceSortOf
While in the process of upgrading from 1.1 to 1.6 get_profile() returns a field error. Exception Type: FieldError Exception Value: Cannot resolve keyword 'user' into field. Choices are: date_joined, email, first_name, groups, id, is_active, is_staff, is_

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

2016-12-05 Thread NoviceSortOf
-django-1-7 > * http://andrewsforge.com/presentation/upgrading-django-to-17/ (Massive > 4 part series ... assume you want to keep going beyond 1.6) > > On Friday, 2 December 2016 19:40:28 UTC+2, NoviceSortOf wrote: >> >> ...Thanks everyone for the above discussion -- some pr

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

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

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

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. *

Trouble with objects.all() and objects.get()

2016-03-13 Thread NoviceSortOf
I can't manage to figure out why I consistently get a syntax error when attempted to use objects.all or objects.get. >From my code in view.py >>from books.modelsimport Interests The Interests model imports without a problem, but when I try to access the model with any of the following I

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

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

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

[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

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

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

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: 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

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

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

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: 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

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: 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

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: 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: 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 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: 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: 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: 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

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

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

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

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: 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

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

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

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

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

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: 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

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: 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

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

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

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. ... {{

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

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

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
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

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-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)

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: 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

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

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: 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

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: 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()

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: 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: 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

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

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

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

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: 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: 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: 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-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
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

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: 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

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-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

  1   2   >