Re: UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value.

2013-11-19 Thread huw_at1
, Giulio Calacoci wrote: > > Il 19/11/2013 13:45, huw_at1 ha scritto: > > {% csrf_token %} > > If you are using the ajax metod, you don't need this tag in the form > template. > > According with the documentation, you set the csrf token using javascript > in the bef

Re: UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value.

2013-11-19 Thread huw_at1
Calacoci wrote: > > Il 19/11/2013 13:45, huw_at1 ha scritto: > > {% csrf_token %} > > If you are using the ajax metod, you don't need this tag in the form > template. > > According with the documentation, you set the csrf token using javascript > in the bef

Re: Problem with raw query and using in

2013-11-19 Thread huw_at1
Hi, I think I had something similar and followed this thread: http://stackoverflow.com/questions/4574609/executing-select-where-in-using-mysqldb I think this is what Dennis has already said so apologies if it isn't helpful. Kindest regards On Saturday, 16 November 2013 12:40:52 UTC, Thorsten

UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value.

2013-11-19 Thread huw_at1
Hi there, I'm trying to get to the bottom of this warning that I am getting: /usr/local/lib/python2.7/site-packages/django/template/defaulttags.py:59: UserWarning: A {% csrf_token %} was used in a template, but the context did not provide the value. This is usually caused by not using RequestC

Re: Greyed out models in Django Admin

2013-09-06 Thread huw_at1
Thanks for the help. huw_at1 On Thursday, 31 January 2013 22:56:05 UTC, huw_at1 wrote: > > Hi, > > Using Django 1.4, have registered 3 model classes with admin. When > accessing admin page provided by test server can select each class and edit > entries. However when accessing

Re: Greyed out models in Django Admin

2013-09-06 Thread huw_at1
Ah ok thanks I will try that and update. On Thursday, 31 January 2013 22:56:05 UTC, huw_at1 wrote: > > Hi, > > Using Django 1.4, have registered 3 model classes with admin. When > accessing admin page provided by test server can select each class and edit > entries. Howe

Re: Greyed out models in Django Admin

2013-09-06 Thread huw_at1
Attached a screenshot to show what I mean (photoshopped a couple of model names) On Friday, 6 September 2013 13:19:34 UTC+1, huw_at1 wrote: > > Hmm looks like the django user account has full permissions granted > although I am no expert with PostgreSQL. > > This is still an is

Re: Greyed out models in Django Admin

2013-09-06 Thread huw_at1
Hmm looks like the django user account has full permissions granted although I am no expert with PostgreSQL. This is still an issue - any other ideas? Has anyone else seen this before? Many thanks On Sunday, 18 August 2013 22:58:06 UTC+1, huw_at1 wrote: > > Hi, > > I'm using

Re: Greyed out models in Django Admin

2013-08-18 Thread huw_at1
Hi, I'm using the latest Apache server on production. The DEBUG setting is the standard setting that exists within the settings.py file. I'll check what write permissions the production database user has. Thanks On Thursday, 31 January 2013 22:56:05 UTC, huw_at1 wrote: > &g

Re: Greyed out models in Django Admin

2013-08-15 Thread huw_at1
have tried altering the order in which my apps are loaded and also altered the permissions on the applications folder however nothing seems to solve this. Sorry for the BUMP but does anyone have any further info on this? Many thanks Huw Jones On Thursday, 31 January 2013 22:56:05 UTC, huw_at1

Re: Django Development Server Root URL...

2013-08-06 Thread huw_at1
ction with several urls can cause issues with the reversing although I guess this forces one to write better URLs... Again many thanks for the help with this - much appreciated. Kind regards Huw On Monday, 3 June 2013 15:50:21 UTC+1, huw_at1 wrote: > > Hi there, I've run into an

Django Development Server Root URL...

2013-06-03 Thread huw_at1
Hi there, I've run into an issue whereby on production my Django project is accessed from a URL such as http://example.com/django_project/. Apache is configured to host the code under this URL since I do not want the entire site managed by the Django project. My problem is that when I run the

Re: Django 1.4 Development Workflow Using Static Files

2012-12-26 Thread huw_at1
ybe you can just upload the files directly to the collect static folder > on the server > > In any case maybe you want them under version control, so I guess you > could just automate all these steps with fabric > On Dec 26, 2012 1:00 AM, "huw_at1" > > wrote: > &g

Django 1.4 Development Workflow Using Static Files

2012-12-25 Thread huw_at1
? Should I modify the setting.py to change the STATIC_URL value dependent on whether the server is production or development or is there any smarter way? As ever any advice is much appreciated. Huw_at1 -- You received this message because you are subscribed to the Google Groups "Django users&

Re: Django 1.4 manage.py cannot find settings

2012-12-25 Thread huw_at1
[RESOLVED] On Tuesday, 25 December 2012 17:28:15 UTC, Victor Rocha wrote: > > Your welcome! Merry Christmas > > > > On Tue, Dec 25, 2012 at 12:25 PM, huw_at1 > > wrote: > >> Hiya - sorry yeah I pasted the wrong manage.py file initially. It should >>

Re: Django 1.4 manage.py cannot find settings

2012-12-25 Thread huw_at1
age.py file i can see this 'pkadata.settings'; > i didnt see that directory when you showed me your file structure. > > > > On Tue, Dec 25, 2012 at 12:01 PM, huw_at1 > > wrote: > >> pkadata.settings > > > -- You received this message because

Re: Django 1.4 manage.py cannot find settings

2012-12-25 Thread huw_at1
sys.argv) I think you may be right...I think I have the project directory set at a level too high some how... On Tuesday, December 25, 2012 1:22:10 PM UTC, huw_at1 wrote: > > Hi, > > This has probably been asked a million times before so apologies. I'm new > to 1.4 so the s

Re: Django 1.4 manage.py cannot find settings

2012-12-25 Thread huw_at1
d_line(sys.argv) I think you maybe right - I think it may be somewhere the project directory is set a level too high... On Tuesday, December 25, 2012 1:22:10 PM UTC, huw_at1 wrote: > > Hi, > > This has probably been asked a million times before so apologies. I'm new >

Re: Django 1.4 manage.py cannot find settings

2012-12-25 Thread huw_at1
Hi, This project was created using django 1.4. The structure is as follows: /home | --/huw_at1 | ---/TEST | -/test-/test-settings.py

Django 1.4 manage.py cannot find settings

2012-12-25 Thread huw_at1
Hi, This has probably been asked a million times before so apologies. I'm new to 1.4 so the standard project layout is a little unfamiliar. I'm trying to perform a simple import from within my shell: from django.contrib.sites.models import Site However I am constantly getting the problem that

Django RawQuerySet with Oracle CLOB

2010-09-01 Thread huw_at1
Hi there, I've recently been using the raw() manager method to perform a few more complex SQL queries on my Oracle DB and this has been working very nicely. One particular SQL, however, appears to be giving blank or phantom objects: raw_query_list = list(tmp_class.object.raw(SELECT TO_CHAR(clob_c

Re: Manager.Raw() + Pagination

2010-06-04 Thread huw_at1
Ah I solved this now by realising I simply needed to cast the RawQuerySet as a list. On Jun 2, 7:52 am, huw_at1 wrote: > Hi all, > > I'm trying to use Djangos new Raw feature to run a custom SQL and > return back a list of objects. This works fine however I then want to > pag

Manager.Raw() + Pagination

2010-06-01 Thread huw_at1
Hi all, I'm trying to use Djangos new Raw feature to run a custom SQL and return back a list of objects. This works fine however I then want to paginate to present the results as a list. The RawQuerySet has no length value it seems to be able to paginate. Is there a recognised way of achieving thi

Re: Django and Oracle Cartridges

2010-03-19 Thread huw_at1
? Cheers Huw On Mar 19, 12:26 pm, Tom Evans wrote: > On Fri, Mar 19, 2010 at 11:35 AM, huw_at1 wrote: > > I guess what I am asking is - can Django handle BLOBs in its models? > > > On 18 Mar, 16:55, huw_at1 wrote: > >> Hi > > >> I currently have an oraclecar

Re: Django and Oracle Cartridges

2010-03-19 Thread huw_at1
I guess what I am asking is - can Django handle BLOBs in its models? On 18 Mar, 16:55, huw_at1 wrote: > Hi > > I currently have an oraclecartridgewhich performs a specific type of > search on large binary objects (which thecartridgealso creates and > indexes). I want to tr

Django and Oracle Cartridges

2010-03-18 Thread huw_at1
Hi I currently have an oracle cartridge which performs a specific type of search on large binary objects (which the cartridge also creates and indexes). I want to try and integrate the cartridge into a web app using Django however from what I have read so far it appears that Django is not designed

Re: ImportError: No module named urls

2009-07-13 Thread huw_at1
Ah fantastic many thanks. All working nicely now much appreciated. On Jul 10, 4:16 pm, Russell Keith-Magee wrote: > On Fri, Jul 10, 2009 at 10:33 PM, huw_at1 wrote: > > > So I switched from mod_python to mod_wsgi since I don;t really know > > what is going on and I r

Re: ImportError: No module named urls

2009-07-10 Thread huw_at1
y the same as what I am experiencing. Any further suggestions? Many thanks On Jul 9, 5:44 pm, huw_at1 wrote: > Hmm I didn't change any imports as far as i am aware. > > By full traceback do you mean the entirety of the error in the error > log? > > Such as: > >

Re: ImportError: No module named urls

2009-07-09 Thread huw_at1
; A full traceback could be helpful. > > A lot of time when you've got really strange import errors they have   > something to do with circular imports. Did you change any imports   > right before or after the upgrade? > > Regards, > Friðrik Már > > On Jul 9, 2009,

ImportError: No module named urls

2009-07-09 Thread huw_at1
Hi all, I have just been moving my website to a production server and am having some difficulty getting it working. I have upgraded the Django from 1.0 on my development server to 1.1 on the production server. When I try to access the admin pages I get an Internal Server Error and a message in th

Passing data back into forms

2009-02-20 Thread huw_at1
Hi, I have an app which starts with a form. Following user input and submission I generate another form as a table where results are rows in the table and the number of results varies. Each row has a checkbox so that the user can select rows to further process on submitting this form. My question

Re: File Uploading

2009-02-12 Thread huw_at1
Yep I just found the thread about the enctype and indeed it was this and not my comp catching fire!!! Many thanks :) On Feb 12, 2:48 pm, Alex Gaynor wrote: > On Thu, Feb 12, 2009 at 9:38 AM, Karen Tracey wrote: > > On Thu, Feb 12, 2009 at 8:02 AM, huw_at1 wrote: > > >>

File Uploading

2009-02-12 Thread huw_at1
Hi all, I am trying to write a simple app that allows a user to select a file (via the browse button) from which data can be read in and parsed. I have read several examples but none seem to do exactly what I want. I have built a form and so am trying to use forms.FileField(). I can add this fiel

Re: Pagination of non-Django database

2008-11-26 Thread huw_at1
Ahh great - many thanks. I did wonder this but without better documentation I could not be certain. I currently build a list from my sql query so this should be no problem. Much appreciated. On Nov 26, 12:47 pm, Thomas Kerpe <[EMAIL PROTECTED]> wrote: > Am 26.11.2008 13:19 Uhr, huw_at

Pagination of non-Django database

2008-11-26 Thread huw_at1
Hey all, A small part of my framework queries a non-Django db due to it being a legacy db with primary keys already in use. My question is is there a recognised way of applying pagination to non-Django db objects such that I can paginate the sql select query on this database? Many thanks --~--~-

Re: Apache Segmentation Fault on succesful authentication

2008-11-20 Thread huw_at1
#x27;t work, post the output from running 'configure' script > and running 'make' for mod_wsgi. > > I trust mod_wsgi build process more than I do mod_python. > > Graham > > On Nov 17, 9:04 pm, huw_at1 <[EMAIL PROTECTED]> wrote: > > > ls -ltr /u

Re: Apache Segmentation Fault on succesful authentication

2008-11-17 Thread huw_at1
rent systems it may not be in same relative location. > > Graham > > On Nov 13, 10:44 pm, huw_at1 <[EMAIL PROTECTED]> wrote: > > > My apologies. I forgot to mention that I already tried what was > > suggested in the article you pointed me at. I created a symlink i

Re: Apache Segmentation Fault on succesful authentication

2008-11-13 Thread huw_at1
es to mod_python. > > Graham > > On Nov 13, 8:44 pm, huw_at1 <[EMAIL PROTECTED]> wrote: > > > ls -ltr /usr/local/lib > > > -r-xr-xr-x     1 root root  4806649 Nov 11 11:22 libpython2.5.a > > -r-xr-xr-x     1 root root  4806649 Nov 12 12:49 libpython2.5.

Re: Apache Segmentation Fault on succesful authentication

2008-11-13 Thread huw_at1
0) /lib64/ld-linux-x86-64.so.2 (0x0039a2c0) I still don't get why the library is being compiled in statically. On Nov 13, 12:11 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 12, 11:44 pm, huw_at1 <[EMAIL PROTECTED]> wrote: > > > > &

Re: Apache Segmentation Fault on succesful authentication

2008-11-12 Thread huw_at1
11:57 am, marco ghidinelli <[EMAIL PROTECTED]> wrote: > On Wed, Nov 12, 2008 at 03:22:02AM -0800, huw_at1 wrote: > > > An update on this. > > > 'which python' returns: > > >         libpython2.5.so.1.0 => not found > >         libpthread.so.0 =

Re: Apache Segmentation Fault on succesful authentication

2008-11-12 Thread huw_at1
not apache and is something else like this issue. On Nov 11, 10:54 am, huw_at1 <[EMAIL PROTECTED]> wrote: > I'm having difficulty getting the mod_python.so to link dynamically. > I'm trying to compile the python interpreter with the "--enable- > shared" and compili

Re: Apache Segmentation Fault on succesful authentication

2008-11-11 Thread huw_at1
as not dynamically linking to the python libraries. On Nov 11, 12:44 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 10, 8:53 pm, huw_at1 <[EMAIL PROTECTED]> wrote: > > > Hi Graham and thanks for the response again. > > > I seem to remember when I originally built t

Re: Apache Segmentation Fault on succesful authentication

2008-11-10 Thread huw_at1
Some more info. Apache also segfaults when I succesfully sign in to the admin site. On Nov 10, 9:53 am, huw_at1 <[EMAIL PROTECTED]> wrote: > Hi Graham and thanks for the response again. > > I seem to remember when I originally built this 64-bit mod_python > module I had a lo

Re: Apache Segmentation Fault on succesful authentication

2008-11-10 Thread huw_at1
cement for mod_python which I can run Django and other python web apps through? Are there any changes I need to make to them if I implement this module? Many thanks Huw On Nov 8, 10:05 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 7, 10:29 pm, huw_at1 <[EMAIL PROTECTED]> wrote

Re: Apache Segmentation Fault on succesful authentication

2008-11-07 Thread huw_at1
re and am worried I will lose my setup if I do this. So I guess I am open to suggestions as I am trying to weigh up my options. On Nov 6, 10:33 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 7, 2:38 am, huw_at1 <[EMAIL PROTECTED]> wrote: > > > Hi all. I am having s

Re: Apache Segmentation Fault on succesful authentication

2008-11-06 Thread huw_at1
I tried running a strace on apache for this but I am still no wiser? Anyone? On Nov 6, 3:38 pm, huw_at1 <[EMAIL PROTECTED]> wrote: > Hi all. I am having some real problems with this. I have an LDAP > authentication backend that I have hooked up to my app. Standalone it > appe

Apache Segmentation Fault on succesful authentication

2008-11-06 Thread huw_at1
Hi all. I am having some real problems with this. I have an LDAP authentication backend that I have hooked up to my app. Standalone it appears to run fine. However when running it through my apache server I am seeing alot of segmentation faults in my error log coupled with the redirection page not

Legacy databases

2008-10-16 Thread huw_at1
Hi, I want to use Django to query two legacy Oracle databases. >From what I have read Django can handle legacy databases provided the primary key is an auto-incremented integer field in the tables of the databases. Does Django work in such a way that it will take these databases and rebuild the

Re: 404 not found for media files

2008-10-13 Thread huw_at1
estContext(request, {"some_var": "foo"}) > > And yes, Alias is the way to go in Apache configuration. Probably   > mod_rewrite would work, too. > > Erik > > On 13.10.2008, at 13:20, huw_at1 wrote: > > > > > Hi Erik, > > > Many thanks for y

Re: 404 not found for media files

2008-10-13 Thread huw_at1
ngo_projects/proj_name/media/ or use mod_rewrite. Then   > you should instead request for {{ MEDIA_URL }}test.js not the   > hardcoded /media/test.js. This requires that you have request context   > processor activated and MEDIA_URL is available in the template context. > > Erik >

404 not found for media files

2008-10-13 Thread huw_at1
Hi there. I have a website running out of django on my apache/ mod_python web server. When trying to link javascript to my templates such as: