Hi,
I am having some trouble trying to setup Django SVN on a shared web host
with lighttpd and flup (Joyent's Shared Accelerator).
I have setup lighttpd and it runs seemingly fine.
I am unable to get the fastcgi socket to be created with the runfcgi
command. In particular, the command I am
On Feb 11, 2008 11:52 PM, a sanjuan <[EMAIL PROTECTED]> wrote:
> yes. the pages already make use of includes and of course inheritance, but
> each page has unique text content. it is a big commercial website
You know, if you've got a bunch of pages with different text, you can
use a database to
yes. the pages already make use of includes and of course inheritance, but
each page has unique text content. it is a big commercial website
On Mon, Feb 11, 2008 at 9:51 PM, James Bennett <[EMAIL PROTECTED]>
wrote:
>
> On Feb 11, 2008 8:43 PM, a sanjuan <[EMAIL PROTECTED]> wrote:
> > We use
I apologize a priori for intruding but I thought you may be interested
in this...
web2py 1.22 (formerly Gluon) is out
http://www.web2py.com
web2py was very much inspired by Django so this is a good time to
publicly thank all the Django developers for their excellent work,
Adrian in
On Mon, 2008-02-11 at 16:55 -0800, Peter wrote:
> I have a bunch of widgets that I access dynamically and they render
> their own parts of a page. I would like to give these widgets the
> ability to use templates. Furthermore, these are not installed apps,
> so I do not have access to the
>
On Mon, 2008-02-11 at 10:33 -0800, Peter wrote:
> I'm having the same issue as seen in this post:
> http://groups.google.com/group/django-users/browse_thread/thread/4eb598a52fee2d14/49cd8b7eae6bd72e?lnk=gst=delayed_loader
>
> I'm getting an IndexError: "list index out of range" in
>
On Mon, 2008-02-11 at 23:42 +0100, Nicolas Steinmetz wrote:
> Hello,
>
> In my app, I have the following :
> - "Userskill" allows a given user to link 1 to n skills thanks to a
> Foreign Key to "Skill" model
> - In Skill model there is a foreign key to "Skilldomain".
>
> I would like to
On Mon, 2008-02-11 at 06:13 -0800, shabda wrote:
> I have a model something like,
>
> class Task(models.Model):
> name = models.CharField()
> parent_task = models.ForeignKey('Task')
> is_complete = models.BooleanField()
>
> class TaskItem(models.Model)
> name = models.CharField()
>
On Mon, 2008-02-11 at 04:30 -0600, James Bennett wrote:
> On Feb 11, 2008 3:41 AM, Rozita <[EMAIL PROTECTED]> wrote:
> > Can I test another way instead of moving my files?
>
> You can hack around with your Python import path (Google will teach
> you what that means).
>
> But you really ought
On Mon, 2008-02-11 at 01:03 -0800, Julien wrote:
> Hi,
>
> Here's the SQL code:
>
> SELECT
> `projects_project`.`id`,`projects_project`.`name`,`projects_project`.`created_by_id`,
> FROM `projects_project` INNER JOIN `projects_participant` AS
> `projects_project__participants`
> ON
Don't suppose you called your project or app 'twitter' also? Or any
other file on pythonpath?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Hello All,
I am trying to do some filtering in the admin. I am using a
combination of
javascript and jQuery to accomplish that.
I have few questions:
1) Can I pass where OR queries in the URL? If so, what is the syntax?
2) I tried using IN in the URL. That has the following behavior:
if I
>From my project root I do this:
http://dpaste.com/34820/
Yay! I can talk to twitter! All is good with the world!
I have a module called tweet.py at project_root/lib/tweet.py. Weird
thing is the AttributeError it produces:
http://dpaste.com/34821/
What the? I have a custom tag that imports
On Feb 11, 2008 8:43 PM, a sanjuan <[EMAIL PROTECTED]> wrote:
> We use includes...those are actually 255 CONTENT pages...
You have over 255 URLs which don't offer any logical way to break them up?
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
We use includes...those are actually 255 CONTENT pages...
On Mon, Feb 11, 2008 at 5:01 PM, James Bennett <[EMAIL PROTECTED]>
wrote:
>
> On Feb 11, 2008 12:04 PM, Alex Ezell <[EMAIL PROTECTED]> wrote:
> > Does anyone else think that 255 urls seems a little crazy?
>
> Yes. This sort of thing is
I use something like this in a function that creates forms for most
of my models with some special processing based on related fields:
for n in object_instance._meta.fields:
if n.verbose_name == 'RELATED_FOREIGNKEY_MODEL_VERBOSE_NAME':
#Model has FK relation
for n in
On Mon, 2008-02-11 at 17:33 -0800, [EMAIL PROTECTED] wrote:
> I'm writing a few generic views, in particular a search view.
>
> It might not know the model that it is working with, so... is there a
> way to determine if one model is related to another?
>
> for instance:
>
>
I'm writing a few generic views, in particular a search view.
It might not know the model that it is working with, so... is there a
way to determine if one model is related to another?
for instance:
model1.isRelated(model2)
when i say "is related" i mean that either it has a foreign key to
make a new separate urlconf (name it `config_urls.py` or something) for each
project `x/` and `y/`
make the urlconf in each of them something like this:
patterns = (
(r'^x', include("urls")),
)
and the other file:
patterns = (
(r'^y', include("urls")),
)
Then your app will be able to read
On Feb 12, 2008 6:58 AM, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> On 2/11/08, msoulier <[EMAIL PROTECTED]> wrote:
> > When I ran sqlall with apps that have initial_data.json files, which
> > syncdb does respect, the SQL for these were not dumped.
>
> That's because fixtures -- i.e.
I have a bunch of widgets that I access dynamically and they render
their own parts of a page. I would like to give these widgets the
ability to use templates. Furthermore, these are not installed apps,
so I do not have access to the
On Feb 9, 5:19 pm, Richard Jones <[EMAIL PROTECTED]> wrote:
> I'm still getting the transient errors mentioned in my OP though.
Anyone? I'd be happy to provide more detail if there was any that
might help?
Am I the only person seeing this behaviour?
Richard
Thanks very much for your help.
I'm now aware that installing an sql server is a non trivial event. :)
I apologize because I'm used to doing an install with a double click
of an icon. :)
I'm impatient because I saw this talk demonstrating django, and I
wanted to just
try that code out from
Here's the deal.
I saw a talk on django. And it was VERY cool.
There's a small, simple piece of code I wanted to run. In fact, the
code itself
is beautiful.
Its the setup I'm having problems with. :)
On Feb 11, 8:01 am, Michael Hipp <[EMAIL PROTECTED]> wrote:
> Jeff Gentry wrote:
> >> Man
I am getting the following error:
MOD_PYTHON ERROR
ProcessId: 4196
Interpreter:'ale.local'
ServerName: 'ale.local'
DocumentRoot: '/Library/WebServer/Documents'
URI:'/~ale/newsite/'
Location: '/~ale/newsite/'
Directory: None
Filename:
Hi,
I'm just learning and following allowing in the django "definitive
guide" and web site tutorial. Following both, I get to the admin
interface and perform the required steps.
However, when navigate to the /admin/ URL, I get an error message:
TemplateDoesNotExist at /admin/
admin/login.html
Hello,
In my app, I have the following :
- "Userskill" allows a given user to link 1 to n skills thanks to a
Foreign Key to "Skill" model
- In Skill model there is a foreign key to "Skilldomain".
I would like to display all the skills for a given user by skill domains.
I have such models
We released PyAMF 0.1, a lightweight library that allows Flash and
Python applications to communicate via Adobe's ActionScript Message
Format. AMF3 and RemoteObject are supported in all the implemented
Remoting gateways, currently supported for Django, Twisted and WSGI.
A summary of new features
guess what happen to me :(
http://browsershots.org/http://mobbing-gegner.de/
http://mobbing-gegner.de/
vhost-ispconfig-different ip and very rar error :) What happens ? Any
hints for me
On 11 Feb., 21:26, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> What are you using in urls.py file? This
Hello,
I have some problems about my blog which I would like to hear your
opinion about.
A user should have the possibility to upload image files in an post
(which is represented by a Model). Images can be displayed either
seperately from the text or can be embedded in the text.
If
On Feb 11, 2008 12:04 PM, Alex Ezell <[EMAIL PROTECTED]> wrote:
> Does anyone else think that 255 urls seems a little crazy?
Yes. This sort of thing is what mechanisms like include() are for.
--
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."
On 2/11/08, msoulier <[EMAIL PROTECTED]> wrote:
> When I ran sqlall with apps that have initial_data.json files, which
> syncdb does respect, the SQL for these were not dumped.
That's because fixtures -- i.e. "initial_data.json" -- aren't SQL;
they're loaded using a different mechanism. The
What are you using in urls.py file? This is more about what you have
in the urls.py file than it is an issue with mod_python or Apache. You
shouldn't need to be using rewrite rules.
Graham
On Feb 12, 7:04 am, <[EMAIL PROTECTED]> wrote:
> I looked at the sample code there, and it tells me how to
I looked at the sample code there, and it tells me how to run two Django
applications under the same vhost--but I still have the problem of needing to
deal with the /x/ in http://foo.bar.com/x/admin/. Is there a way to use
mod_python (or something else) to proxy requests for
> > How can I create passwords protected feeds with Django? I guess I
> > will have to go beyond the contrib.feeds framework, but if some one
> > has any recipes/links to how to do this, it would be most helpful!
>
> Use your own custom view to render the feed, and just wrap HTTP auth
>
To follow up my own post, since I've learned a bit more...
The query set works as expected on an Admin form. What I want to change
is what's shown on the change list Admin page. I'm currently
investigating overriding the change list template and see if I can do it
that way. Any other
I'm having the same issue as seen in this post:
http://groups.google.com/group/django-users/browse_thread/thread/4eb598a52fee2d14/49cd8b7eae6bd72e?lnk=gst=delayed_loader
I'm getting an IndexError: "list index out of range" in
delayed_loader.py when it tries to make the call:
caller =
that worked...than you! :-)
On Mon, Feb 11, 2008 at 12:21 PM, Jonathan Ballet <[EMAIL PROTECTED]> wrote:
>
> asj2008 wrote:
> > We are hitting an error that disables the entire website when we have
> > more than 255 web pages...this is the error we see..has anyone seen
> > this before? It does
syncdb [--verbosity] [--interactive]
Create the database tables for all apps in INSTALLED_APPS whose
tables haven't already been created.
python manage.py syncdb --interactive
manage.py: error: no such option: --interactive
sqlall [appname ...]
Prints the CREATE TABLE,
This seems very useful! Is there some way I can wrap my rss feed
within a view function?
My feeds class looks like,
class ProjectRss(Feed):
def get_object(self, bits):
I am using the django.contrib.syndication.feeds.
Michael Elsdörfer wrote:
> > How can I create passwords
Does anyone else think that 255 urls seems a little crazy?
There's got to be a way to build some regexs and views to deal with
those pages in a little more dynamic way.
Then again, without seeing any of it, it could be totally cool. /me shrugs
/alex
On Feb 11, 2008 11:28 AM, James Bennett
> How can I create passwords protected feeds with Django? I guess I
> will have to go beyond the contrib.feeds framework, but if some one
> has any recipes/links to how to do this, it would be most helpful!
Use your own custom view to render the feed, and just wrap HTTP auth
around it. There
Except, I think with the svn version it's:
def __unicode__(self)
return self.id
I'm working with 0.96, but I've come across something about that in the
docs. Does it need to be "return u'%s' % self.id" to convert if self.id
is an int?
Cheers,
Cliff
On Mon, 2008-02-11 at 18:15 +0100,
On Feb 11, 2008 11:02 AM, asj2008 <[EMAIL PROTECTED]> wrote:
> We are hitting an error that disables the entire website when we have
> more than 255 web pages...this is the error we see..has anyone seen
> this before? It does not seem to be in the documentation
It's a limit hard-coded into
On Feb 11, 2008 11:17 AM, Tim Chase <[EMAIL PROTECTED]> wrote:
> There are a couple possibilities that occur to me, but without
> seeing the code, it's hard to tell. Functions/methods can
> certainly take more than 255 parameters, though it may have to be
> done through *args/**kwargs format; or
How can I create passwords protected feeds with Django? I guess I will
have to go beyond the contrib.feeds framework, but if some one has any
recipes/links to how to do this, it would be most helpful!
--~--~-~--~~~---~--~~
You received this message because you are
Hi Tom,
In some places I *believe* object_id gave me results in my own
templates. The next option is to try to access the context, but I
believe you may have to write a template tag to use it (not totally
sure). Here's an example I used:
### //test/templatetags/my_tags.py
from
asj2008 wrote:
> We are hitting an error that disables the entire website when we have
> more than 255 web pages...this is the error we see..has anyone seen
> this before? It does not seem to be in the documentation
>
> ImproperlyConfigured at /products/
>
> Error while importing URLconf
> Error while importing URLconf 'company.urls': more than 255 arguments
> (urls.py, line 339)
It might help to include a slice of your urls.py for the
statement(s) surrounding line 339. And perhaps signatures of
called code.
There are a couple possibilities that occur to me, but without
probably something like (in your model)
def __str__(self):
return self.id
On Feb 11, 2008 6:09 PM, Tom Badran <[EMAIL PROTECTED]> wrote:
> Is there a way i can display the id of an object in the admin pages? I've
> had a look over the docs and nothing jumps out. This is using django svn
Is there a way i can display the id of an object in the admin pages? I've
had a look over the docs and nothing jumps out. This is using django svn
Thanks
Tom
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
We are hitting an error that disables the entire website when we have
more than 255 web pages...this is the error we see..has anyone seen
this before? It does not seem to be in the documentation
ImproperlyConfigured at /products/
Error while importing URLconf 'company.urls': more than 255
Assuming you'll have task->subtask1->...subtaskN it seems to be that
a post save signal might be useful since it can recurse easily. You
might have to copy the initial value for is_complete during __init__
and then compare in post save to make sure to act only when the value
has changed.
Using Django v0.96
According to what I've been able to find, I can assign my own Manager to
a Model. Setting up my default Manager would then affect the default
query, which includes the one the Admin view would use. For example:
class OrgManager(models.Manager):
def get_query_set(self):
Hey guys,
Thanks for the replies. Part of the issue I was having is I had the
extras keyword in the wrong subclass (I had it in the options class for
my model, instead of the inline class). It appears the functionality
is working as it should be for now...
Cheers,
Aaron
Brian Rosner
Jeff Gentry wrote:
>> Man I hear you. I've been doing web for 10 years, in a variety of
>> languages. I have Django installed VERBATIM according to the
>> documentation.
>
>> I can get Django to run, but I can't get it to server images using the
>> built-in server. mod_python is a whole other
> Man I hear you. I've been doing web for 10 years, in a variety of
> languages. I have Django installed VERBATIM according to the
> documentation.
> I can get Django to run, but I can't get it to server images using the
> built-in server. mod_python is a whole other ball of wax. I have
>
> I am using newforms admin and have a custom UserProfile model set in my
> inlines for my User, is there a way to limit the UserProfile to 1 for
> the User? Right now it's trying to offer 4 profiles for the user, and
> 'extras=1' doesn't seem to affect how many are displayed (I don't want
>
I dunno if this is the answer you are looking for, but if you want to
enforce that there is only one user set unique = True for the user in
the UserProfile class.
class UserProfile(models.Model):
user = models.ForeignKey(User, unique = True)
On Feb 11, 10:42 am, Aaron Fay <[EMAIL PROTECTED]>
I have a model something like,
class Task(models.Model):
name = models.CharField()
parent_task = models.ForeignKey('Task')
is_complete = models.BooleanField()
class TaskItem(models.Model)
name = models.CharField()
task = models.ForeignKey(Task)
is_complete = models.BooleanField()
I
Thanks a lot for your help. Appending the path to python import path
worked!!! Thanks again.
On Feb 11, 1:30 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On Feb 11, 2008 3:41 AM, Rozita <[EMAIL PROTECTED]> wrote:
>
> > Can I test another way instead of moving my files?
>
> You can hack
http://hippiecity.myminicity.com/
http://hippiecity.myminicity.com/
http://hippiecity.myminicity.com/
http://hippiecity.myminicity.com/
http://hippiecity.myminicity.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Hello,
please, for a given tag T, how to get all the other tags of all the
items tagged with T? And sorted by tag usage? And not just for one tag
T but for many?
Or, in another words: "what other tags are associated with documents
that are associated to my tag"?
Or, in another words: "a list
On Feb 11, 2008 3:41 AM, Rozita <[EMAIL PROTECTED]> wrote:
> Can I test another way instead of moving my files?
You can hack around with your Python import path (Google will teach
you what that means).
But you really ought to be developing apps that can live independently
of a project folder.
Thanks.This is a good solution but the last solution :-). I want to
have the file structure hiararchy as it is now and I don't want to
change it. In fact I want to have a folder named as mySite and two
folder in it named as firstApp and secondApp and views.py and
models.py files in these folders.
On Feb 11, 2008 3:33 AM, Rozita <[EMAIL PROTECTED]> wrote:
> Is there any way that I can omit project name from import statements?
Yes.
Refactor your code so that the applications are no longer in the
project folder, and put them directly on the Python import path
instead. This is generally
I want to know if there is a way to omit name of project from import
statements. For example I have some imports in my views.py as below:
from mySite.firstApp.models import Cls1
from mySite.secondApp.models import Cls2
and I want to change them to below:
from firstApp.models import Cls1
from
Hi,
Here's the SQL code:
SELECT
`projects_project`.`id`,`projects_project`.`name`,`projects_project`.`created_by_id`,
FROM `projects_project` INNER JOIN `projects_participant` AS
`projects_project__participants`
ON `projects_project`.`id` =
`projects_project__participants`.`project_id`
WHERE
I have tired with options: blank=True, null=True, but I have not got
what I wanted!
Maybe the question was not enough clear.
In Admin interface you got a choices list with one element this : "- -
- - -". What I want is that I could skip this element with
an empty string " " for example.
69 matches
Mail list logo