, 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
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
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
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
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
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
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
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
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
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
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
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
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
? 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&
[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
>>
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
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
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
>
Hi,
This project was created using django 1.4. The structure is as follows:
/home
|
--/huw_at1
|
---/TEST
|
-/test-/test-settings.py
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
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
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
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
?
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
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
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
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
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:
>
>
; 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,
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
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
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:
>
> >>
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
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
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
--~--~-
#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
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
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.
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:
>
>
>
> &
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 =
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
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
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
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 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
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
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
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
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
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
>
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:
51 matches
Mail list logo