On Jan 10, 3:44 pm, Alan wrote:
> Hello List,
> So, using django server por development and my apps were working fine. Now
> that I got apache2 + mod_wsgi working (on Mac Leopard), when trying to
> access a page, I always get a error saying "TemplateDoesNotExist" and I
Your best bet would be to achieve this using Ajax. Check out these
basic tutorials:
http://www.b-list.org/weblog/2006/jul/31/django-tips-simple-ajax-example-part-1/
http://www.b-list.org/weblog/2006/aug/05/django-tips-simple-ajax-example-part-2/
Steve
On Aug 31, 8:00 pm, Yury Lifshits
I can't say for sure, but I believe that the now button in the admin
is a javascript. So I think that is where you need to look to control
the output.
Steve
On Aug 29, 4:14 pm, Gerard Petersen <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Im *still* :-( trying to get the date format from
Personally when the newforms-admin was merged I quit updateing django
so I wouldn't have to make multiple changes to my code before the 1.0
release. Then I planned to move everything to 1.0 and stay with it
until another major release (or until there was a new feature I
couldn't live without
I really don't have any experience with this. However if I was trying
to implement a search, the first thing I would do is look at the
Django Admin code and see how it was done there.
Steve
On Aug 25, 1:15 pm, chefsmart <[EMAIL PROTECTED]> wrote:
> Please seehttp://dpaste.com/hold/73759/I
What Erik is saying is that in recent versions of Django you no longer
use the same syntax to activate the admin. This happened when the
newforms-admin branch was merged.
Steve
On Aug 24, 10:13 am, Shadow <[EMAIL PROTECTED]> wrote:
> ah... :P thanks
>
> But what about the "Change password"
though.
>
> On Sun, Aug 24, 2008 at 5:43 AM, Steve Potter <[EMAIL PROTECTED]>wrote:
>
>
>
> > I am working on a project that involves logging every time an object
> > is displayed, and I can have anywhere from tens to hundreds of objects
> > displayed per page.
I am working on a project that involves logging every time an object
is displayed, and I can have anywhere from tens to hundreds of objects
displayed per page.
So needless to say I can quickly be generating very large numbers of
queries to the database to log all of these displays.
What I am
>
> print update_sku, update_stock
> #Returned the whole feed
> 2817312 130
> 2842300 22
> 2846762 50
> 2859391 22
> BPC60SS 22
> BPC70SS 2
> BPC90SS 2
> BPS60SS 22
> BPS70SS 22
> BPS90SS 22
> BTD600 22
> BWC150SS 80
> BWC300SS 22
>
> print p.sku, p.items_in_stock
> #Returned only the last line
On Jun 20, 12:20 pm, Milan Andric <[EMAIL PROTECTED]> wrote:
> This TypeError message always baffles me and is hard to debug. I'm
> using SVN 6962 which means I should probably upgrade, but I tried that
> a month or so ago around query-set-refactor merge and things were
> unhappy so decided to
>
> Searching here:
>
> http://code.djangoproject.com/search
>
> for date_heirarchy brings up an open ticket:
>
> http://code.djangoproject.com/ticket/7199
>
> So looks like someone else has hit this and reported it already. The report
> includes some analysis of where the error is occurring
On Jun 13, 7:47 pm, Steve Potter <[EMAIL PROTECTED]> wrote:
> I just updated the the latest version of Django and I started getting
> the following error in the admin interface:
>
> Caught an exception while rendering: invalid literal for int() with
> base 10
I just updated the the latest version of Django and I started getting
the following error in the admin interface:
Caught an exception while rendering: invalid literal for int() with
base 10: 'None'
It seems to be the result of a model I have with a DateTimeField with
both null and blank set to
On Apr 7, 11:08 am, bobhaugen <[EMAIL PROTECTED]> wrote:
> My view that creates a new order ends with this statement:
> return HttpResponseRedirect('%s/%s/'
>% ('order', new_order.id))
You should be able to just place a slash in front of your redirect
statement so
recently really helped me out with figuring this
> out:http://collingrady.com/2008/02/18/editing-multiple-objects-in-django-...
>
> It actually is amazingly simple once you get what is going on.
>
> On Mon, Mar 3, 2008 at 5:23 PM, Steve Potter <[EMAIL PROTECTED]> wrote:
>
>
I am in the process of building a replacement admin change_list for
one of my models. My goal is to allow some of the more common fields
to be edited on the change_list page as opposed to having to click on
each individual to make changes.
So, I have a basic model:
class Site(models.Model):
On Nov 16, 12:01 am, Matt McClanahan <[EMAIL PROTECTED]>
wrote:
> On Nov 15, 8:51 pm, Steve Potter <[EMAIL PROTECTED]> wrote:
>
> > It just seem that there should be a better way of doing this. I was
> > thinking about a method that would perform the tes
I'm working on a project that involves logging large amounts of
information about each visitor to the site.
I understand that the contents of request.META cannot be depended
upon, but I would like to log things like REMOTE_ADDR and
HTTP_REFERER.
I am finding myself writing a lot of code that
On Oct 24, 1:35 am, Page <[EMAIL PROTECTED]> wrote:
> I'm new to Django and Python but trying to catch on. I have an image
> model for a portfolio page. I also have a model for the portfolio
> information for that page.
>
> After creating a template for the portfolio item detail page I can
>
On Oct 19, 8:43 pm, "Jeremy Dunck" <[EMAIL PROTECTED]> wrote:
> On 10/19/07, Steve Potter <[EMAIL PROTECTED]> wrote:
>
>
>
> > I would like to put together a piece of code that will test the
> > referer for each request and if it matches a pr
I would like to put together a piece of code that will test the
referer for each request and if it matches a predefined pattern it
would log that request as well as place a cookie on the client.
Is custom middleware the correct place to do this?
Also, I'm not exactly clear how
On Oct 11, 5:43 pm, johnny <[EMAIL PROTECTED]> wrote:
> I was going over documentation on pagination and it mentions you can
> do it in two ways as follows:
>
> URL... ?page=x
> or
> (r'^objects/page(?P[0-9]+)/$', 'object_list', dict(info_dict))
>
> My question is, you would use
>
> "URL...
mit the beginning and
end slashes.
Also, I believe the upload_to path is only appended at the time of
upload. So, if you already had the aforementioned entry in the
database before you set the upload_to path you may get the result you
are seeing.
Steve Potter
--~--~-~--~~~---
ectory.
> In that case
> django.template.loaders.app_directories.load_template_source would be
> able to found your custom tag template. And you don't need to add this
> directory's path to TEMPLATE_DIRS variable.
>
> On Sep 30, 1:17 pm, Steve Potter <[EMAIL PROTECTED]>
I created a custom inclusion tag that makes use of a template file
named menu_tag.html. I placed that file in the app's subdirectory of
the template directory.
When I tried to make use of it I got a template does not exist
error.
I was able to resolve this by adding the app's subdirectory to
On Sep 29, 6:58 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> What version of Apache are you using? The ordering or rule evaluation
> in Apache 1.3 is actually based on order of LoadModule/AddModule lines
> in Apache configuration as at code level can't define the ordering
> dependencies
Below is the httpd.conf virtual host directive I created based on the
directions from the mod_wsgi website. Everything is working fine with
mod_wsgi and Django. The problem I am having is with the media
directory (I would like it to be /images/).
It appears that the line with Alias /images/
On Sep 26, 10:02 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote:
>
> > user = models.ForeignKey(auth.models.User)
>
> > It appears that the django.contrib.auth is missing the models
> > attri
On Sep 26, 9:36 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 9/26/07, Steve Potter <[EMAIL PROTECTED]> wrote:
>
> > ViewDoesNotExist: Tried index in module projectsmt.imglog.views. Error
> > was: 'module' object has no attribute 'models'
>
I have been working on trying to deploy a simple app that I created
and works fine with the development server. Deployed it using apache
and mod_wsgi. After working through a few initial permissions issues
I am left with the following error:
ViewDoesNotExist: Tried index in module
On Sep 25, 8:27 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Sep 26, 3:59 am, Steve Potter <[EMAIL PROTECTED]> wrote:
>
>
>
> > > This sort of odd error can sometimes come up if you have chosen names
> > > for directories/modules whi
>
> This sort of odd error can sometimes come up if you have chosen names
> for directories/modules which clash with standard Python module names.
>
> Where you have in your WSGI script file for mod_wsgi something like:
>
> sys.path.append('/usr/local/django')
>
On Sep 24, 6:16 pm, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
>
> > Are you sure that the user Apache is running as has permissions
> > to read directories/files under the missed user's home dir?.
>
> The permissions issues along with other common issues are described
> in:
>
>
I am in the process of trying to deploy a Django site using mod_wsgi.
I had no problems installing mod_wsgi. However I did run into a few
problems when trying to set the site.
The first thing I ran into is that i forgot to install Mysql-python.
So, I downloaded the source and did the following:
>
> Django can be run fine under Apache 1.3 using mod_wsgi.
>
> The only issue is whether they do really allow you to add additional
> Apache modules to the installation.
>
> Graham
This is interesting... It is possible to install additional modules
with cpanel, it just makes updating for new
>
> 5. Use a different server.
>
> Unless you are on what cPanel calls the bleeding edge, you're running
> Apache 1.3 which is useless for serving Django. That leaves you with
> either #3 or #4. #3 has issues because cPanel wants to bind Apache to
> all IP addresses. I had issues (though I
I currently have a dedicated server running a Cpanel installation with
several virtual hosts. I would like to install Django on this server
and as far as I can tell, I have several options.
1. Add mod_python to existing Apache installation
2. Add FastCGI to existing Apache installation
3.
On Sep 5, 11:31 am, "Dorai Thodla" <[EMAIL PROTECTED]> wrote:
> Steve,
> This is a great idea that may work as a migration strategy from lot of other
> portals/content management systems or even websites. I wonder whether there
> is some wikispace where we can preserve migration strategies.
>
>
>
> Try coding each module as a Django template tag.
> Then, create a template that returns an html fragment rather than a
> full html page.
> Associate each rendered template with a specific URL.
> Perhaps something like:
> mysite.com/components/module1.html
> In Joomla, create a plug-in
system until I have finished
converting all of the modules.
Thanks,
Steve Potter
--~--~-~--~~~---~--~~
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@google
without using the URL
system?
Thanks,
Steve Potter
--~--~-~--~~~---~--~~
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 unsubs
41 matches
Mail list logo