bennett p17

2008-08-19 Thread joe
cannot reproduce TemplateDoesNotExist error on page 17? i found something* that tells you to change your settings.py SITE_ID = 2 made it work fine. nope - i have no idea what SITE_ID = 2 means either. * ref: '[EMAIL PROTECTED]' from django users group july- ish 2007 --~--~-~--~~-

Re: pagination django

2009-03-25 Thread Joe
page for every two products, see the documentation at: http://docs.djangoproject.com/en/dev/topics/pagination/ Please try to be more specific and informative in your questions, it will help you get better answers. - Joe --~--~-~--~~~---~--~~ You received this mess

Re: Authentication backend for Facebook problems

2010-04-26 Thread Joe
On Apr 26, 5:42 am, Martin Lundberg wrote: > I was told to create a middleware which I did but it feels wrong since > it is called on every request for everything. And if I add > authentication by Twitter and maybe Google, there will be even more > middleware that is called everytime. > > What is

Really annoying problem, First App part 1 related

2010-12-09 Thread Joe
Ok, so when I do exactly as the tutorial says, I get hella errors. I change directory to where I want to store my project which goes fine, then: >>> django-admin.py startproject mysite SyntaxError: invalid syntax with 'startproject' highlighted. The django-admin.py file is in the directory I chang

Re: Really annoying problem, First App part 1 related

2010-12-09 Thread Joe
Aaaah cheers, I knew there was something fundamentally wrong. Got it working now. On Dec 9, 6:58 pm, Martin Melin wrote: > On Thu, Dec 9, 2010 at 7:03 PM, Joe wrote: > > Ok, so when I do exactly as the tutorial says, I get hella errors. I > > change directory to where I want to s

Re: Hosting for django?

2009-12-24 Thread Joe
What about www.librehosting.com? On Dec 24, 2009, at 2:26 PM, JeffH wrote: > Tried DreamHost, which is OK for shared static sites; fuggetaboutit > vis a vis Django. I've been using http://www.valcatohosting.com/. They > have some good getting started docs and excellent support. Good for > low vo

Re: How do you rollback a transaction outside the context of a request?

2010-04-14 Thread Joe
On Apr 14, 6:15 pm, Bill Freeman wrote: > I'm running code from the manage.py shell to load stuff (from an XML export > from > an excel read of a SQL Server dump, of all things), which gets a database > error > (Postgersql correctly noticing that a value is too long for a field, > for instance)

Re: virtualhosts, mod_python, and Django's cache

2007-06-21 Thread Joe
Are you using Apache Prefork or MPM? On Jun 21, 9:39 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Error can be seen herehttp://beta.atlantaicecompany.com/ > > AGDWeb is an app in a totally separate project under the same > PythonPath. It has a separate settings file. > > I am not using a

Re: User data shared between two websites

2007-06-21 Thread Joe
Yes. You need to meet several conditions though: 1. Obviously, the settings files for both sites must point at the same database 2. The two sites can't use the same model names. If they do, they will share the data in those models as well, not just the users tables. 3. The settings files for

Re: User data shared between two websites

2007-06-21 Thread Joe
Oops, mean to say subdomain in part 4 On Jun 21, 3:48 pm, Joe <[EMAIL PROTECTED]> wrote: > Yes. You need to meet several conditions though: > > 1. Obviously, the settings files for both sites must point at the same > database > > 2. The two sites can't use the

Re: User data shared between two websites

2007-06-22 Thread Joe
James is correct. Steps 3-5 above actually refer to automatic login(user stored in session) and session sharing, not just sharing users. However, I assumed you would want to do this as well. On Jun 21, 4:14 pm, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 6/21/07, Petey <[EMAIL PROTECTED]> wr

limit)choices_to and OneToOne field affecting admin

2007-06-28 Thread Joe
Hi, I have a model that has a OneToOneField to User and a limit_choices_to parameter set: class Profile(models.model): [---tab---] user = models.OneToOneField(User, limit_choices_to={'is_staff':True}) When I use this is_staff parameter, I can only see staff users when I log in to the Django adm

Re: limit)choices_to and OneToOne field affecting admin

2007-06-28 Thread Joe
Found it. In line 745 and 746 in main.py in django/contrib/admin/ views if self.opts.one_to_one_field: qs = qs.complex_filter(self.opts.one_to_one_field.rel.limit_choices_to) What was the thought behind this, and why wouldn't this be optional? On Jun 28, 8:52 am

Problem with user login

2007-09-10 Thread Joe
'django.middleware.common.CommonMiddleware', 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', ) SESSION_COOKIE_DOMAIN=".mydomain.com" CACHE_MIDDLEWARE_SECONDS = 1500 CACHE_MIDDLEWARE_KEY_PREFIX = '&

Re: Problem with user login

2007-09-10 Thread Joe
... On Sep 10, 1:39 pm, Michael Radziej <[EMAIL PROTECTED]> wrote: > On Mon, Sep 10, Joe wrote: > > > Hi, > > > I have a medium-traffic django site (maybe 2 page views a day) and > > I am having a problem with users trying to log into the site. > > > I a

Re: Problem with user login

2007-09-10 Thread Joe
Ok, just noticed that Django has etags disabled by default, and I haven't touched that setting. Any other ideas? On Sep 10, 1:50 pm, Joe <[EMAIL PROTECTED]> wrote: > The domain of the cookie is .mydomain.com. > > How do I disable ETags? I have the common middleware instal

Re: django on mediatemple (dv) box?

2007-03-01 Thread joe
Something to try - ensure apache is reading your vhosts.conf file - there is a line in httpd.conf that points to a vhosts.conf file - or put the directives right in httpd.conf to test. On Mar 1, 12:45 pm, "leland" <[EMAIL PROTECTED]> wrote: > what's up gang - i've got everything installed on my m

Re: Starting other processes in a view gives me some weird results.

2007-03-13 Thread Joe
We had a similar problem when a process you start tries to send a signal to python indicating a warning or something similar. There is a know version in older versions of python that causes it to ignore these signals and hang the process. Try upgrading python. On Mar 13, 8:46 am, "Ino Pua" <[EM

Re: how to connect Django to objects served over xml-rpc?

2007-04-22 Thread Joe
It sounds like you shouldn't be using Django, honestly. You would be fighting against/hacking around most of the functionality of django because django is an MVC framework and you guys basically are trying to re-write the model architecture. If you really really really want to use django, you sh

Model subclassing

2007-05-14 Thread Joe
I was wondering what the status of this is? I know that it broke a while back with the introduction of magic object removal, and has been in the pipeline since. I just tested it out on my recent SVN checkout, and it seemed to create the tables in the database in the way that one would expect. Howe

Re: Extra_context for 404 pages?

2007-09-11 Thread Joe
One way is to create a template tag to access the setting, that way you don't have to pass it in through the context every time you raise a 404. On Sep 10, 6:20 am, Ryan K <[EMAIL PROTECTED]> wrote: > Hi. I have certain settings about the locations of static files (like > CSS files) that I need t

Re: Add field in models django 0.96

2007-09-25 Thread Joe
The easiest way to to this is look at the create table SQL generated by the manager. python manage.py --settings=my_settings sql my_app Then, run the appropriate query once you know the datatype created when you added the column. For example, in postgres: ALTER TABLE myapp_mymodel ADD COLUMN m

Re: Should Django have a road map?

2007-10-01 Thread Joe
is is true, what is the disadvantage to tagging a release every couple of months? It would provide a serious benefit to those of us who have to deal with corporate red tape. I know this may seem a little harsh and may get your blood stirred up, but I ask you to consider it rationally as a way to h

Re: Should Django have a road map?

2007-10-01 Thread Joe
I think it would really help us "corporate middle managers" out! Maybe you can tag "Release Candidates" with no guarantee of bug fixes? Regards, Joe On Oct 1, 11:50 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Mon, 2007-10-01 at 06:05 -0700, Joe wrote: >

Re: Should Django have a road map?

2007-10-01 Thread Joe
naturally shrinks as you get closer and closer to the date. with > frequent releases, you'll find the users don't bitch too much when you > tell them "sorry, X didn't make it into this one because it {'took > longer','fell to higher priority work'}

Re: Does setting a session cause a redirect?

2007-10-03 Thread Joe
Can you post the command line output? On Oct 3, 11:45 am, Rob Hudson <[EMAIL PROTECTED]> wrote: > I'm working on an advanced search feature for a website and am using > request.session to store the search terms so pagination will remember > and paginate correctly. While working with the built-in

Re: Using VIEWs from a database

2007-10-04 Thread Joe
On Oct 4, 3:39 pm, Jonathan Ballet <[EMAIL PROTECTED]> wrote: > * I have methods on instances of my class which should not be there > (.create, .delete, .save) (at least, I'm not using materialized > views). I think a good thing to do with these would be to override the methods and raise a NotI

Question about Django caching

2007-10-22 Thread Joe
I am using the Django cache middleware to cache my site. I had to set CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True because some content changes based upon which user is logged in (Hello, username). If I go into the template and do some template fragment caching, will it ignore the setting abov

Re: Question about Django caching

2007-10-22 Thread Joe
Well, after looking at the code, it appears the template tag ignores the CACHE_MIDDLEWARE_ANONYMOUS_ONLY setting. Thanks to all those who responded! (PS: I was just kidding) On Oct 22, 11:50 am, Joe <[EMAIL PROTECTED]> wrote: > I am using the Django cache middleware to cache my site.

Caching querysets

2007-10-30 Thread Joe
I am running into a performace problem with Django and scaling. I have enabled the caching middleware, but had to set CACHE_MIDDLEWARE_ANONYMOUS_ONLY=True so I could continue to use the admin interface. Now, authenticated users are beginning to put a noticeable load on the server. How do I impl

Re: Caching querysets

2007-11-01 Thread Joe
lue of the cookie header? On Oct 30, 10:50 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-10-30 at 05:43 -0700, Joe wrote: > > I am running into a performace problem with Django and scaling. > > > I have enabled the caching middleware, but had to set > > C

Re: Caching querysets

2007-11-01 Thread Joe
to vary on request.user.is_authenticated, and NOT the value of the cookie header? On Nov 1, 11:39 am, Joe <[EMAIL PROTECTED]> wrote: > Correct me if I'm wrong, but wouldn't this place more load on the > server to to this, as an anonymous user visiting the site for the > first time would

Re: Caching querysets

2007-11-01 Thread Joe
Sorry, meant to NOT vary on the value of the cookie header. On Nov 1, 11:39 am, Joe <[EMAIL PROTECTED]> wrote: > Correct me if I'm wrong, but wouldn't this place more load on the > server to to this, as an anonymous user visiting the site for the > first time would

Is Django Threaded Fastcgi Safe?

2007-11-05 Thread Joe
I am considering switching from mod_python and apache to lighttpd and fastcgi because of the large number of virtual hosts I am serving. Because each virtual host gets its own sub interpreter, each apache instance on my server can weigh in at over 160 megs. I have heard that apache-mpm, mod_pyth

Re: Oh boy, I've gone and done it now.

2007-11-05 Thread Joe
A newer version of Django may be passing in a unicode string instead of an ASCII one. The make_thumbnail() function may be expecting an ASCII string. On Nov 5, 1:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > OK, I attempted to install patch 2070, and failed miserably, messing > up /cor

Re: Is Django Threaded Fastcgi Safe?

2007-11-05 Thread Joe
Also, should I take a look at mod_wsgi? On Nov 5, 11:22 am, Joe <[EMAIL PROTECTED]> wrote: > I am considering switching from mod_python and apache to lighttpd and > fastcgi because of the large number of virtual hosts I am serving. > > Because each virtual host gets its own sub

Re: Is Django Threaded Fastcgi Safe?

2007-11-06 Thread Joe
e is more important > for a specific application than memory consumption. > > Graham > > On Nov 6, 6:11 am, Joe <[EMAIL PROTECTED]> wrote: > > > Also, should I take a look at mod_wsgi? > > > On Nov 5, 11:22 am, Joe <[EMAIL PROTECTED]> wrote: > &g

Re: mod_python: problem with http.conf

2007-11-06 Thread Joe
Can you open a python interpreter and import your application? I place a sim link (ln -s) within the python site-packages directory to my project directory and the django source directory. J On Nov 5, 4:37 pm, stranger <[EMAIL PROTECTED]> wrote: > Hello I am using Fedora 7. I am using Django for

Re: Help With Modeling This

2007-11-06 Thread Joe
You could also add some functions to the models to add pull the related data class TagItem(models.Model): ... def get_related_artists(self): # pull the data return data That function is available in the template and can be called inline so to speak. Joe On Nov 6, 12:40 pm, "[

Re: TemplateDoesNotExis, but actually it exist

2007-11-07 Thread Joe
Sounds like some sort of user access problem - like the www-data (default for ubuntu) user that Apache runs with can't access that directory or read that file. Odd that your users can access the page though. J On Nov 6, 8:40 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have a website,

Re: webhostingbuzz, anyone tried

2007-11-08 Thread Joe
I use webfaction and I've found them to be great. J On Nov 8, 2:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi guys. > These guys seem to have very tempting packages. They say they support > django. What I'd like to know is what kind of support? Do I have to > install it on my home f

Re: Customizing the Django admin interface

2007-11-09 Thread Joe
There's a few things to put together - urls.py needs something like (add a line before the normal admin line): (r'^admin/your_report/csv/$', 'yourproject.admin_views.report.csv_report'), (r'^admin/', include('django.contrib.admin.urls')), Then in your admin_views/report.py (or whatever you

Re: pull a random record from the database

2007-11-09 Thread Joe
How about : Book.objects.order_by('?')[:1].get() On Nov 9, 2:26 pm, LorenDavie <[EMAIL PROTECTED]> wrote: > How about this: > > import random > Book.objects.all()[random.randint(0,Book.objects.count()-1] > > On Nov 9, 2:00 pm, Hani <[EMAIL PROTECTED]> wrote: > > > Hi James, > > > I did go thro

Re: Strip Illegal Characters - Django Admin

2007-11-16 Thread Joe
You could try encoding the data in your view - something like: try: cleandata = rawinput.encode("iso-8859-1", "ignore") or 'Unknown data type' except: # Whatever you want here pass Just an option. Also depends on what you need to capture and return to users. I too deal with odd encodings. On

Re: Apache mod_python config problem

2007-11-19 Thread Joe
Try creating symbolic links in your site-packages directory to your django source and application source. ln -s Joe On Nov 16, 11:24 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I've been writing a Django app at work using Windows XP and Apache. > Everythin

Re: efficiently search for ManyToMany links?

2007-11-22 Thread Joe
You can query the database directly: from django.db import connection # Database connection cursor = connection.cursor() # Raw Query cursor.execute("SELECT statement;") rows = cursor.fetchall() J On Nov 22, 12:55 pm, Adam Seering <[EMAIL PROTECTED]> wrote: > Hi all, > I have code that

Re: creating user and profile in just one form

2007-12-10 Thread Joe
I've done this but with a manually built form. You can just add the extra form fields to the template, then reference those extra fields in your view. new_data['your_new_fieldname'] will work as expected. In your view you might first create the user object - then create the customer object rela

Re: Performance of a django website

2007-12-11 Thread Joe
from pulling up all related records when the object is loaded etc. While I would have expected this to only affect the admin side, it had a huge impact on the public side of our site. Memory consumption went from +500mb to 20-30mb. Joe On Dec 11, 12:53 pm, Richard Coleman <[EMAIL PROTECTED]>

Re: Noob question: Which Linux distribution is "best" for Django?

2007-12-11 Thread Joe
To make things easy, you could download VMware Server - run that on your windows box and install the prebuilt appliances. That'd make it easy to try out a few linux versions. VMware is free as are the appliances. I use ubuntu primarily. j On Dec 9, 9:57 am, Andreas Pfrengle <[EMAIL PROTECTED]>

GeoDjango: Invalid spatial reference pointer returned from "OGR_L_GetSpatialRef"

2007-12-12 Thread Joe
code. I was able to successfully run the third-party library installation tests at [4] and also the DataSource example at [5], in case that helps to shed any light on the soundness of my installation. Should the example still work with the latest svn revision of GeoDjango? The IPython session

Re: GeoDjango: Invalid spatial reference pointer returned from "OGR_L_GetSpatialRef"

2007-12-13 Thread Joe
ired for geographic > models. I appreciate your taking the time to explain the issue. It's very helpful for someone just starting out with GeoDjango. Thanks, Joe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Apache no longer responds to HTTP requests

2007-12-14 Thread Joe
re to look, and what to change? Thanks, Joe --~--~-~--~~~---~--~~ 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 gr

Re: Apache no longer responds to HTTP requests

2007-12-16 Thread Joe
? > > J > > On Dec 14, 9:00 am, Joe <[EMAIL PROTECTED]> wrote: > > > Configuration: Django .96, apache 2.0 prefork, mod_python 3.1, python > > 2.3.5 > > > Symptoms: Monitor site (using wget) can't get HTTP status, netstat > > shows a dramatic i

Re: What I lost if run django under Python 2.3?

2006-09-22 Thread Joe
Hope this helps, Joe --~--~-~--~~~---~--~~ 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 [

Re: How to join 2 QuerySets? (with QuerySet object in result)

2006-09-28 Thread Joe
Are the news and articles using the same fields? if so, you can do some custom SQL like this (warning: hack follows): News.objects.extras([ ' WHERE [...] UNION (SELECT * FROM ARTICLES WHERE [...] )' ]) --~--~-~--~~~---~--~~ You received this message because you

Why is my Django install so slow?

2007-01-15 Thread Joe
I am running Django on a webserver in conjunction with a fileserver and a database server. All of these machines have over 6 gigs of ram and dual core Xeon processors. They also are running on raid-5 HDD. However, as little as 5000 hits a day brings my site down to a crawl during peak hours!

Re: Why is my Django install so slow?

2007-01-15 Thread Joe
I would appreciate ANY idea, no matter how far-fetched it may seem. I will also gladly provide further information if you need it. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to t

Re: Why is my Django install so slow?

2007-01-15 Thread Joe
I would be glad to offer as much information as possible, I just really need a direction to start looking. I have read performance tuning guides (including the one by Jacob) and implemented the suggestions. None seem to work. --~--~-~--~~~---~--~~ You received th

Re: Why is my Django install so slow?

2007-01-15 Thread Joe
A separate Apache install on a separate server. We have three separate physical machines: a web server, file server and DB server --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to th

Re: Why is my Django install so slow?

2007-01-15 Thread Joe
I would have to guess that they are slow (dialup or slow DSL). Here are some of my apache config settings: TimeOut 300 KeepAlive On MaxKeepAliveRequests 500 KeepAliveTimeout 2 StartServers 8 MinSpareServers 5 MaxSpareServers 20 MaxClients 75 MaxRequestsPerChild 1024 StartServers 2

Re: Why is my Django install so slow?

2007-01-15 Thread Joe
Thanks. I will try to disable it. Also, I get an error message when I try to increase the shared_buffers setting: FATAL: could not create shared memory segment: Invalid argument DETAIL: Failed system call was shmget(key=5432001, size=182059008, 03600). HINT: This error usually means that Po

Re: Why is my Django install so slow?

2007-01-29 Thread Joe
Well, we figured it out. The USB bus on the motherboard of the WS was failing, and Linux was writing a ridiculous amount of error messages to the log, which crippled hard drive IO. Go figure. On Jan 15, 9:01 pm, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: > On 15-Jan-07, at 10:2

Multiple column primary keys

2006-07-19 Thread Joe
schema changes initially, since for migration we wanted to start by using Django's admin module, while keeping the remainder of the PHP website/app untouched. So, any chance that multi-column keys will be supported soon? Joe --~--~-~--~~~---~--~~ You received this

Django field types and PostgreSQL data types

2006-07-19 Thread Joe
//' (unless the URL is for an https) since the app provides that default where necessary. Is URLField compatible with that behavior? Thanks for your assistance. Joe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

Re: Django field types and PostgreSQL data types

2006-07-19 Thread Joe
Malcolm Tredinnick wrote: > On Wed, 2006-07-19 at 21:25 -0400, Joe wrote: > I could have sworn I answered this just yesterday on this list: > http://groups.google.com/group/django-users/browse_frm/thread/a13b9b12488569ef/549fa8112c0c97a7#549fa8112c0c97a7 > > Short answer: "

Errors in following tutorial

2006-07-25 Thread Joe
I've posted the following comment at http://www.djangoproject.com/documentation/tutorial1/ but thought perhaps it belongs here. n many instances, if you make a mistake following the tutorial, either accidentally or intentionally (e.g., if --to experiment-- you leave out the 'votes' parameter when

Re: Errors in following tutorial

2006-07-25 Thread Joe
re in 0.95). So how does one recover from the aborted transaction? Joe --~--~-~--~~~---~--~~ 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

Re: Is MS SQL Server support coming anytime soon?

2006-07-27 Thread Joe
We use a scheduled migration from SQL Server to Postgres with a third party app: http://www.sqledit.com/mk/index.html It has to be run on a windows box, but it allows you to do cool things like create a table in the postgres database with the results of a SQL query on the SQL Server database. T

Re: Batch record processing

2006-07-27 Thread Joe
You could just strip the path out and get the filename when you extract the file from the database. Something like: def get_file_without_path(self): start=self.file.rfind('/') return self.file[start+1:] --~--~-~--~~~-

Re: How to save file with name based on PK of DB entry

2006-07-27 Thread Joe
You could write a 'save' hook that renames the file and updates the database with this change. Example: class Blog(models.Model): name = models.CharField(maxlength=100) tagline = models.TextField() def save(self): do_something() super(Blog, self).save() # Call the "re

Re: customizing admin templates

2006-08-01 Thread Joe
I'm not sure Django supports this 'out of the box'. You could try adding a template tag to the base_site.html folder. I'm pretty sure Django passes in the model name into the context of the template. You should be able to find this in the Django source (I'm not sure where off the top of my head

Using Django in a Cron Job

2006-08-09 Thread Joe
this working? (Note: I will not be setting up the Cron job, nor do I know now. I will simply be giving a python script to our IT staff for them to set up). Thanks for the help, Joe --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: Extending user model in 0.95?

2006-08-09 Thread Joe
Use a user profile. Define a model similar to the following: [code] from django.db import models from django.contrib.auth.models import User class Profile(models.Model): #add extra fields you want here user =models.ForeignKey(User ,unique=True,edit_inline=models.S

Re: Multiple Websites using the same project and apps

2006-08-09 Thread Joe
Why don't you just create a file called root_settings.py that has all of the common settings files, and then create a settings file for each web site that imports root_settings.py? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

Re: Using Django in a Cron Job

2006-08-09 Thread Joe
Thanks for the tip! However, when I use the shell in Django, I use the command : python manage.py shell. I was just wondering if there was some behind the scenes setup (in the path, for instance) that was being done that I would have to do on the Cron job. --~--~-~--~~~-

Re: Using Django in a Cron Job

2006-08-09 Thread Joe
Thanks a bunch! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED

Re: Issue with template tags...

2006-08-16 Thread Joe
You may have a name conflict. Rename the file 'linkroll.py' to 'linkroll_tags.py' or something similar. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dja

Re: notification when an object is deleted

2006-08-17 Thread Joe
You could write a database trigger and bypass Django entirely. --~--~-~--~~~---~--~~ 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

Re: Admin section: Possible to integrate image manipulation?

2006-08-21 Thread Joe
You could write a post-save hook that manipulates the file after they are saved. Consider using the following python tool: http://www.python.net/crew/zack/pymagick/ This requires you to have image magik on your server. --~--~-~--~~~---~--~~ You received this me

Url regex keeps django busy/crashing

2012-07-26 Thread Joe
Hey, I have a url regex like this which is keeping django extremely busy (20secs to 1min to handle a request). On some urls it even crashes. my regex: url(r'^(?P(\w+-?)*)/$', 'detail'), view: def detail(request, item_url): i = get_object_or_404(Page, url=item_url,published=True) return

Possible bug with django site frameworks swapping between 2 sites every request

2015-04-11 Thread Joe
I am using django's sites framework with dajngo 1.7. I am calling the site name through a context processor like below. The problem is that every time the page loads, it switches between site1 and site2: def site_info(request): Site.objects.clear_cache()# i tried with and without this

Re: Possible bug with django site frameworks swapping between 2 sites every request

2015-04-15 Thread Joe
mentRoot. There's absolutely no reason to do it that way. You're just > asking to have your settings.py file exposed by a misconfigured apache > instance. > > On Sat, Apr 11, 2015 at 10:02 AM, Joe > > wrote: > >> >> I am using django's sites

Re: Possible bug with django site frameworks swapping between 2 sites every request

2015-04-18 Thread Joe
ent > > On Wed, Apr 15, 2015 at 8:47 AM, Joe > > wrote: > >> How do you set it to the dummy cache? >> >> On Saturday, April 11, 2015 at 2:06:10 PM UTC-7, Stephen Butler wrote: >>> >>> What happens if you disable all caching (try setting it to t

Re: Handling secret keys in digitalocean

2018-01-10 Thread Joe
In addition to all of the reasons Jason posted, a private GitHub repository does not guarantee you any security of your data. >From https://help.github.com/articles/github-terms-of-service/ : "GitHub does not warrant that the Service will meet your requirements; that the Service will be uninter

Syntax Error when trying to migrate to Postgresql

2018-02-13 Thread Joe
I have installed django, Postgresql, and psycopg2 and went to migrate a project to a new database I created on postgresql, This is the error message I got. Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File "/Users/JosephConrad

Re: Syntax Error when trying to migrate to Postgresql

2018-02-14 Thread Joe
more likely it looks as if you are using wrong quotation > marks other than ' or ". I dont even have on my keyboard whats in your > error message. > > > Am Mittwoch, 14. Februar 2018 01:17:43 UTC+1 schrieb Joe: >> >> I have installed django, Postgresql, and

Re: Syntax Error when trying to migrate to Postgresql

2018-02-14 Thread Joe
I used TextEdit on Mac to edit the files, maybe using a different editor would work better. On Wednesday, February 14, 2018 at 5:41:24 PM UTC-5, larry@gmail.com wrote: > > On Wed, Feb 14, 2018 at 5:32 PM, Joe > > wrote: > > > > DATABASES = { > > &#x

Re: Syntax Error when trying to migrate to Postgresql

2018-02-14 Thread Joe
The problem was with the quotes being weird format, had to copy and paste the correct quotes in for it. Thanks for the help!! On Wednesday, February 14, 2018 at 9:59:06 PM UTC-5, Joe wrote: > > I used TextEdit on Mac to edit the files, maybe using a different editor > would work bette

Database Routing

2017-05-17 Thread Joe
I am in the process of setting up a django server. I am trying to connect our 4 legacy DBs to her. I have created a separate app for each DB, added the app_label to the meta of the model and wrote a read only router for each db. This was working fine until i got to the last one. The routing is

Multiple types of output (HTML, JS), same view.

2008-10-30 Thread Joe Murphy
tes for each of the three outputs. There's something about this that seems wrong, but I can't imagine a cleaner solution. Any thoughts? Joe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users"

Browser access to manage.py / django command extensions

2008-11-10 Thread Joe Murphy
ve come up with blanks. I understand the security risks in something like this, I also understand the job-security risks in not doing this. Thanks, Joe --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django u

Re: Multiple types of output (HTML, JS), same view.

2008-11-18 Thread Joe Murphy
Hi Bruno, Your solution is more elegant and more DRY than the approach I took. This is what I ended up with: # urls.py (r'^election/results/(?P[-\w]+)/(?P\d{4})/((? P(js|htm))\/)?$', 'race.views.racename_detail'), # views.py def get_filetype(filetype): if filetype: return filetype

Re: cpu load

2008-11-25 Thread Joe Murphy
t was caused > by changes queryset-refactor, especially the way QuerySets behaved > during pickling. > > Sorry I can't give you the exact link :( > That rings a bell -- think that was Ned Batchelder's "A server memory leak" article? http://n

Execute function after Add in admin site

2008-10-13 Thread Joe Sr
I am working on an "Issues" application and I want to execute code to send an e-mail to an assignee after an issue has been added. I saw that there are signals I can intercept for pre- and post-save, but how could I only limit to insert and not update events? --~--~-~--~~

Re: Execute function after Add in admin site

2008-10-16 Thread Joe Sr
On Oct 13, 1:53 pm, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > On 13 oct, 18:11, Joe Sr <[EMAIL PROTECTED]> wrote: > > > I am working on an "Issues" application and I want to execute code to > > send an e-mail to an assignee after an issue has been ad

RE: Beginner URL question.

2009-02-23 Thread Joe Goldthwaite
>You could try using a tag to explicitly state what the >base for relative URLs should be. Thanks Ned. That sounds like it will work. I'll try it. >I would sugest that you look at named urls and the {% url %} template >tag. That way you can generate urls with the use of args for year, >month

Accessing the development server from another machine.

2009-03-04 Thread Joe Goldthwaite
I've been developing with the development server with the default settings without problems. My main development is done in a Windows virtual machine running on a Macbook Pro. Today I wanted to test the output with Safari. Since I don't have that installed in Windows, I decided to just try connect

RE: Accessing the development server from another machine.

2009-03-04 Thread Joe Goldthwaite
ccessing the development server from another machine. On 3/4/09, Joe Goldthwaite wrote: > > I've been developing with the development server with the default settings > without problems. My main development is done in a Windows virtual machine > running on a Macbook Pro. Today

RE: Accessing the development server from another machine.

2009-03-04 Thread Joe Goldthwaite
:38 AM To: django-users@googlegroups.com Subject: Re: Accessing the development server from another machine. Joe Goldthwaite wrote: > My main development is done in a Windows virtual machine > running on a Macbook Pro. Today I wanted to test the output with Safari. [snip] > It looks like

RE: Accessing the development server from another machine.

2009-03-04 Thread Joe Goldthwaite
re must be a setting somewhere. _ From: django-users@googlegroups.com [mailto:django-us...@googlegroups.com] On Behalf Of Karen Tracey Sent: Wednesday, March 04, 2009 3:00 PM To: django-users@googlegroups.com Subject: Re: Accessing the development server from another machine. On We

  1   2   3   >