Re: Error: name 'include' is not defined

2023-03-22 Thread Robinson
import path, include On Wed, Mar 22, 2023 at 4:49 PM Harouna Diallo wrote: > You must Import include : from django.urls import path, include > > On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens > wrote: > >> Hello, >> >> I'm brand new to Django taking an online course in Python. >> I created a p

Re: Django/uWSGI/nginx under load

2021-02-20 Thread Andy Robinson
21 at 17:44:45 UTC jmccla...@gmail.com wrote: > are you using django directly to run the queries or are you querying the > db. I had a similar problem a while back with a project and the load was > resolved by letting python do the work. > > > > On Sat, 20 Feb 2021 at 15:23,

Re: Django/uWSGI/nginx under load

2021-02-20 Thread Andy Robinson
heck the number of open file descriptor when you experienced the slow > response. > > On Sat, Feb 20, 2021 at 10:23 PM Andy Robinson > wrote: > >> Hi all, >> >> We're maintaining an application that is hitting scaling problems. It >> helps run grass-roo

Django/uWSGI/nginx under load

2021-02-20 Thread Andy Robinson
ry to share what I can and am very grateful for any help... Best Regards Andy Robinson -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-use

Best way to run a shell script, using input value from Django?

2019-01-02 Thread Chris Robinson
Hello, I'm going to attempt to generalize my question to make this easier to answer. Lets say I have a simple terminal based shell script (e.g. multiply_by_two) that takes a number argument, then multiplies that number by 2, and returns the result into a result.txt file. I would enter som

Best way to submit application cmd, then download a resulting file?

2019-01-02 Thread Chris Robinson
Hello, I'm going to attempt to generalize my question to make this easier to answer. Lets say I have a simple terminal based application (e.g. multiply_by_two) that takes a number argument, then multiplies that number by 2, and returns the result into a result.txt file. I would enter somet

Django m2m_changed pk_set is empty

2017-06-10 Thread Jason Robinson
hy is the `pk_set` sometimes empty, any ideas? Note that both `Profile` objects also exist before the RQ job is processed (event is triggered by doing a "follow" in the UI). Also of note, added object *is* found in the ManyToMany field after the operation. Thankful of any ideas, Br, J

Re: What are the active Django e-commerce frameworks right now (2014)?

2014-04-28 Thread Andy Robinson
I second the recommendation for Stripe. I have no need for shopping carts but suffered for years dealing with credit card payments for license renewals. Many solutions were running into problems with foreign banks blocking payments (which the payment solution can't do anything about), spurious

ANN: ReportLab PLUS 3.1 - rapid PDF creation for Django sites

2014-04-28 Thread Andy Robinson
uild service. Find out more... <http://www.reportlab.com/reportlabplus/> Andy Robinson CEO / Chief Architect ReportLab -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving email

FormWizard and "add to basket" problem

2011-11-16 Thread Andy Robinson
We need to code a 5-step form wizard. The first step should let you select products with various options, validate them, then add those items to a basket, then proceed when you are ready. The next few steps are straightforward - personal details, delivery details, payment. The FormWizard in 1.3

Error filtering using bboverlaps

2011-01-25 Thread B. Heath Robinson
I am getting the following error when I try a complicated filter with a join involving bboverlaps. Join on field 'shape' not permitted. Did you misspell 'bboverlaps' for the lookup type? Here is the line that causes the problem. saved_properties = saved_properties.filter(property__parcel__shape

Fwd: PostGISAdapter error

2011-01-17 Thread Robinson B. Heath
It has been a couple of weeks without a reply. Is there somewhere else I should post this or am I on my own? Begin forwarded message: > From: "Robinson B. Heath" > Date: January 4, 2011 11:41:48 PM CST > To: django-users@googlegroups.com > Subject: PostGISAdapter error

PostGISAdapter error

2011-01-04 Thread Robinson B. Heath
I am getting the following error when the queryset tries to generate the SQL: "'str' object has no attribute 'ewkb'" Here is what I am doing that causes the problem: shapes = Shape.objects.filter(geom__bboverlaps=bbx) shape_info = shape_info.filter(shape__in=shapes) Models are:

Saving Child Records via ForeignKeyField

2010-04-28 Thread Robinson B. Heath
I believe I have done my due diligence, but point me in the right direction if I am missing something. I am working on a generic importing engine to import various file formats(csv, fixed length, etc) into django models based on json formatted file definitions. It needs to do something like th

Please criticise this storage architecture...

2010-03-03 Thread Andy Robinson
I'm planning a self-service publishing/reporting system. Django will likely be the web framework. I am considering a rather unusual storage architecture, and would love to know where the pitfalls are. Users will be companies in a small vertical space. They want to let their clients (effectively

Post-save hook after inline records saved?

2010-02-03 Thread Andy Robinson
I'm writing a bookkeeping system using Django latest code. I would like to make sure that when certain records are saved, changes are made to other records.For example, when I save a Sale model in the admin - or programmatic code - it may create (or update) a bunch of records in the general l

Re: Need suggestions on subversion structure for project

2008-09-05 Thread Andy Robinson
s connects to localhost as a standard 'development' user. Then you can check out a project and run it out of the box. Any "real" server connection params should only go in the unversioned custom file. - Andy Robinson, ReportLab --~--~-~--~~~---~--~-

Re: django_settings_module not being set by manage.py

2008-05-23 Thread David Robinson
Karen Tracey wrote: > So what's changed, I'm guessing, to introduce this problem is you added this > import to to your project's __init__.py file. Karen, Thanks - while I was trying to get my head wrapped around newforms-admin, I put some stuff in __init__.py and then forgot to take it out. I

Re: django_settings_module not being set by manage.py

2008-05-23 Thread David Robinson
Karen Tracey wrote: > manage.py doesn't set the environment variable, it just imports settings > assuming it is in the current directory. Since you don't get an error > message that that failed, presumably it worked so the question is why is > some subsequent code trying to use the environment va

django_settings_module not being set by manage.py

2008-05-23 Thread David Robinson
I have run into a problem that I don't understand - when I try to run "shell manage.py shell" I just started getting an error about the DJANGO_SETTINGS_MODULE environment variable not being defined. I found the information I needed to work around the problem (on this list - thank you, Evert Ro

newforms-admin and intermediary tables for m2m relationships

2008-05-19 Thread David Robinson
We are using our own intermediary table for a many-to-many relationship so that we can store additional information about the relationship itself, and we are just embarking on a thorough overhaul of this app's code. In the existing project, we heavily modified change-list and change-form templ

Re: Better Image Uploads: Fake Model Fields?

2008-05-14 Thread Andy Robinson
ata which needs to be managed and backed up, and if it has a structured naming convention, it really helps. The only thing better would be storing BLOBS in the database table directly (he says, donning an asbestos suit and running for cover...;-) ) - Andy Robinson, ReportLab --~--~-~-

Re: conditional block tag

2007-05-23 Thread David Robinson
I'm probably missing something about your question, and please excuse me if that's the case, but wouldn't you be able to do this: {% if header %} {% block header %}Page Heading{% endblock %} {% endif %} Dave Trey wrote: > I have an interesting case that I would like to get some input on

Re: Creating graphs in Django application

2006-09-08 Thread Andy Robinson
Thanks Joseph. You might find it interesting to take a look at our Diagra product datasheet... we've been in the financial charts business since 2001 http://www.reportlab.com/docs/diagra-ds.pdf The engine and most chart types have been in the open source package since 2001, but we've not rea

Re: Creating graphs in Django application

2006-09-08 Thread Andy Robinson
I have just added an article to the Wiki on how to create charts using ReportLab's graphics library I hope this helps! http://code.djangoproject.com/wiki/Charts Andy Robinson, CEO/Chief Architect, ReportLab Europe Ltd --~--~-~--~~~---~--~~ You received

Django under IIS with ISAPI

2006-09-08 Thread Andy Robinson
d reload any changed Python modules. http://moinmoin.wikiwikiweb.de/MoinMoin_ISAPI If anyone here already has Django running under IIS, please tell me - otherwise we'll have a crack at this and update the wiki if it works. - Andy Robinson, ReportLab --~--~-~--~~

Re: Configurable LDAP authentication

2006-08-15 Thread David Robinson
ve worked our way through various situations is something we are able to do. Dave Robinson Carthage --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djang

Re: drag & drop for admin-interface

2006-08-02 Thread David Robinson
patrickk wrote: > see http://demo.script.aculo.us/ajax/sortable_elements >> On Wed, 2006-08-02 at 19:50 +0200, patrickk wrote: >>> I´m just doing some dojo DnD-stuff for the django admin-interface. >>> ... >>> question: would you prefer instant saving? The thing that I wasn't clear about was wh

Re: Specify order of content items

2006-07-08 Thread David Robinson
[EMAIL PROTECTED] wrote: > Interesting! Nice to see an example of how to integrate dojo and > django, there aren't many... > > Are you building a custom administration interface for Sputnik which > allows for the reordering of news items by use of this technique? > Did you try to implement this d

Re: Specify order of content items

2006-07-07 Thread David Robinson
drakepad wrote: > Thanks for clarifying the issue Arthur. Drag and drop support would be > fantastic indeed... We've got the same sort of need to specify the order of news items. And we have done it using Dojo's drag and drop. I'm not the one who did it, but the guy who did get it to work wro

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

2006-06-06 Thread David Robinson
Douglas, James, Wilson, Rudolph: Thanks - that clears things up. It's quite encouraging to see that we were pretty much headed in a viable direction. Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

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

2006-06-06 Thread David Robinson
I'm still trying to wrap my head around some basic ideas. I appreciate the patience that has been extended my way already. Having pounded through the tutorial, I have a decent idea of how the poll app works, with a URL being associated with a function in the Poll app's view. That function th

sorry for the stupid noob question - kwarg?

2006-06-04 Thread David Robinson
Really, I've tried looking this one up myself (you wouldn't believe how many questions I *haven't* had to ask... (thanks for well-written docs everyone)). It seems almost obvious, but I am proving to be just dense enough to not get what is this "kwarg". Dave --~--~-~--~~--

Re: remedial django - what IS a "site" exactly?

2006-05-23 Thread David Robinson
Many thanks to James and Adrian for explaining sites. I'm expecting to have several more questions over the coming weeks as we get further into things, and it's nice to know that the Django community is so responsive. Dave --~--~-~--~~~---~--~~ You received this

remedial django - what IS a "site" exactly?

2006-05-20 Thread David Robinson
essage-ID: <[EMAIL PROTECTED]> Date: Sat, 20 May 2006 18:59:33 -0500 From: David Robinson <[EMAIL PROTECTED]> User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en Mime-Version: 1.0 Content-Type: text/plain To: django-users Subject: remedial django - wh