On Thursday 28 Jan 2010 12:47:39 pm Kenneth Gonsalves wrote:
> I have a model called Matchentry which has foreign keys to the Match model
> and the Player model. When making a new Matchentry, obviously the choices
> have to be limited to the players who have not already been entered. I
> used
By any chance does Django support MSSQL DB's. I have a query from a
prospective customer who would like to protect his current IT
investments.
Best regards
Sridhar
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
hi,
I have a model called Matchentry which has foreign keys to the Match model and
the Player model. When making a new Matchentry, obviously the choices have to
be limited to the players who have not already been entered. I used to do this
manually using plain python, but do we have a queryset
I am writing to see if anyone thinks this is not a bug before creating
a new ticket. I have an app that runs as expected on Django 1.1.1. It
used to work on the development version, but a problem arose no later
than 1.2 alpha 1 SVN-12271, and perhaps much earlier.
Basically, the errors dictionary
On Jan 28, 11:54 am, Brett Thomas wrote:
> Most of the URLConf examples I run across use a trailing slash on all
> URLs:www.example.com/profile/
>
> I'm not sure why, but I don't like this. I think it looks nicer
> without:www.example.com/profile
>
> Are there any
Hi daniel,
Thanks for ur reply. I am viewing that page through the facebook only. but i
cont able to work with the FBML tags. Is there an initial setup to use the
FBML tags. Please help me if u know.
Thank you.
On Thu, Jan 28, 2010 at 3:08 AM, Daniel Roseman wrote:
> On
Hi,
Right now I am tracking my subcriber session, I have a new
requirement. From our website, the subcriber can go to different
website and take the exam. Once he finish that exam, I need to send a
request to their database to get the result of that exam.
How can I track the second website
Hi,
On Thu, Jan 28, 2010 at 8:54 AM, Brett Thomas wrote:
> Most of the URLConf examples I run across use a trailing slash on all URLs:
> www.example.com/profile/
>
> I'm not sure why, but I don't like this. I think it looks nicer without:
> www.example.com/profile
I
On Thu, Jan 28, 2010 at 10:41 AM, Chris Curvey wrote:
> Is there a way to use raw SQL with multiple databases? I thought it
> might be something like:
>
> from django.db import connection
> cursor = connection.cursor(using="mydb")
>
> but that complains about an unexpected
Is there a way to use raw SQL with multiple databases? I thought it
might be something like:
from django.db import connection
cursor = connection.cursor(using="mydb")
but that complains about an unexpected keyword arg.
--
You received this message because you are subscribed to the Google
Most of the URLConf examples I run across use a trailing slash on all URLs:
www.example.com/profile/
I'm not sure why, but I don't like this. I think it looks nicer without:
www.example.com/profile
Are there any performance or security reasons to use the trailing slash in
Django? Seems like
In manage.py you could add
sys.path.insert(0, "/path/to/web")
Just before the if __name__="__main__": line
You will also need to handle this in your wsgi file for deployment.
Are you using "South"? If so, new tables for something you have
migrated will not be built by syncdb.
On Jan 27,
> The second line uses XPath notation to assert that the report's first
> contains a which contains exactly 30 rows.
Forgot to mention: We are doing this because wkhtmltopdf apparently
cannot respect tags when it paginates tables for us, so we
must do it the old fashioned way.
Below my sig
Djangoists:
For every system I use, I invent a version of assert_xml(). (Sometimes
I call it assert_html(), or assert_xpath(), or assert_xhtml(),
depending on the context.)
For Django, it's assert_xml(), available in the current django-test-
extensions. Get it with this malarkey:
sudo pip
On Thu, Jan 28, 2010 at 1:07 AM, thanos wrote:
> It's useless. The "The definitive guide to Django" by Holovaty and
> Kaplan-moss is okay, but the Pro version is really just a waste of
> paper and time.
Everyone is entitled to an opinion, but I must say my opinion is the
exact
On Thu, Jan 28, 2010 at 6:23 AM, FxFocus wrote:
> On Jan 27, 4:55 pm, Achim Domma wrote:
>> Hi,
>>
>> I'm interested in buying the "Pro Django" book. I could not find any
>> hint about what version it's written for. As it covers mostly
>>
I just had the same question, and the meta 'ordering' did the trick.
Thanks Reed and Tim!
On Nov 30 2009, 8:22 am, rc wrote:
> Tim,
>
> The ordering meta option on my model did the trick. Thanks for the
> solution.
>
> Reed
>
> On Nov 25, 1:50 pm, Tim Valenta
Hello everybody, I have a huge problem and Google has not helped me
solution : (
Come to my problem:
I have a web server configured with ModPython for 2 websites
those that connect to a firebird database - "2 is
connect the same database "
The problem is that sometimes I get the following error
On Jan 27, 4:55 pm, Achim Domma wrote:
> Hi,
>
> I'm interested in buying the "Pro Django" book. I could not find any
> hint about what version it's written for. As it covers mostly
> internals and the ideas behind Django, it should not be outdated as
> quickly as other
On Wednesday 27 January 2010 22:34:19 Kenny Meyer wrote:
> Have a look at python-setuptools.
>
> May fit your needs.
>
http://packages.python.org/distribute/
--
Saygılarımla,
Atamert Ölçgen
-+-
--+
+++
www.muhuk.com
mu...@jabber.org
--
You received this message because you are
On Thursday 28 Jan 2010 3:10:32 am phoebebright wrote:
> What is going on?!
>
in shell try from yourapp.web.views import *
--
regards
Kenneth Gonsalves
Senior Project Officer
NRC-FOSS
http://nrcfosshelpline.in/web/
--
You received this message because you are subscribed to the Google Groups
Hi,
I'm working with a polyhierarchical thesaurus, and trying to handle that in
Django. By polyhierarchical, I mean : nodes can have both multiple parents and
children.
Actually, this is a geographical thesaurus, and yes a location can have multiple
parents (being across countries, etc..).
I
Two additional notes for this issue:
1. Clicking on _any_ model in the admin causes the same TypeError.
2. Clicking on "+Add" in admin for the User model yields a blank form!
Clicking on "+Add" for any other model shows a valid form.
On Jan 27, 3:08 pm, grahamu wrote:
>
I'm having a problem with django admin working for one local project
and not another. Both use the same version of Django (SVN-12311). Both
have very similar settings.py files.
The issue appears when I click on an app model class name in the root
admin list (at "/admin/"). In this case I was
On Jan 27, 6:54 pm, phoebebright wrote:
> I cannot find the reason why syncdb will not create tables from a
> models.py.
>
> It is quite happy to create the auth tables and ones from an external
> app that is included in INSTALLED_APPS but it won't build the tables
>
Malcolm,
Thanks for your reply. Path does not include web:
'/Users/phoebebr/Development/tinyhq',
'/Users/phoebebr/Development/tinyhq/libs',
'/Users/phoebebr/Development/tinyhq',
'/Users/phoebebr/Development/tinyhq/libs',
'/Users/phoebebr/Development/tinyhq',
but if I do import web I don't
On Jan 27, 9:15 pm, "chiranjeevi.muttoju"
wrote:
> Hi
> in my application the FBML tags are not working properly.. could any
> one of you please help me if you know what the problem might be..
>
> thank you.
> --chiranjeevi.
Yes, your problem is on line 5.
OK, I'll get
On Jan 27, 7:42 pm, JonRob wrote:
> Hi,
>
> I'm just starting out learning Django, trying to cut my teeth by
> working on a simple website that involves a user profile.
>
> I've created a ModelForm of the profile model, that instances the
> profile of the logged in
Hi
in my application the FBML tags are not working properly.. could any
one of you please help me if you know what the problem might be..
thank you.
--chiranjeevi.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
zweb (traderash...@gmail.com) wrote:
> What is the best way to build installer for python/django based
> software product ?
> Like in Microsoft world you can have .exe and installshield?
>
> I need to way which can guide user to setup database, run DB script,
> set up parameters and guide him
On Wed, Jan 27, 2010 at 14:04, andreas schmid wrote:
> is this an add or an edit form? or both?
>
> i have a similar inlineformset and i need to loop over the inline
> objects to set the foreignkey to the parent object like:
>
>if form.is_valid() and formset.is_valid():
Hi,
A question that's probably obvious but I can't quite see the best way to do
it.
I've got a model, call it Template, with some fields colour1, colour2 etc.
What I want is that if there's a no value for the colourN field then a
default value is returned when the field is read.
Aha I hear you
Hi,
I'm just starting out learning Django, trying to cut my teeth by
working on a simple website that involves a user profile.
I've created a ModelForm of the profile model, that instances the
profile of the logged in user, which I then want the user to be able
to update so that they can update
On 01/27/2010 05:55 PM, Achim Domma wrote:
Hi,
I'm interested in buying the "Pro Django" book. I could not find any
hint about what version it's written for. As it covers mostly
internals and the ideas behind Django, it should not be outdated as
quickly as other books. Has anybody read that
What is the best way to build installer for python/django based
software product ?
Like in Microsoft world you can have .exe and installshield?
I need to way which can guide user to setup database, run DB script,
set up parameters and guide him through installation. Also want to
give the option
On Wed, Jan 27, 2010 at 6:54 PM, phoebebright wrote:
> I cannot find the reason why syncdb will not create tables from a
> models.py.
>
> It is quite happy to create the auth tables and ones from an external
> app that is included in INSTALLED_APPS but it won't build
Thanks. That works.
On Jan 27, 1:26 pm, Malcolm Box wrote:
> On Wed, Jan 27, 2010 at 6:10 PM, Zeynel wrote:
> > Hello,
>
> > How do I query the the total number of items in the database to put in
> > a template?
>
> > I want to add to this
Hello Matthias,
> It is possible, but you _will_ get a chaos (or have already gotten one
> in case you've already gone down that road).
thanks for pointing me onto the painful truth. We _have_ the chaos...
but it's not that big yet ;-)
> If you need to fix
> the english version later, the
Maybe you should consider an alternative backend to SQL - which is
after all a relational database! CouchDB?
I could see queries being very expensive with your model.
On Jan 26, 10:08 am, Igor Rubinovich
wrote:
> Hi,
>
> I need an educated opinion on the following
Not reading but after a year using Django I have just got myself setup
with Aptana + Pydev which includes an interactive debugger. I found
this very useful for understanding what is going on in Django behind
the scenes, and wish I'd made the effort to do it sooner!
On Jan 27, 1:14 am,
I cannot find the reason why syncdb will not create tables from a
models.py.
It is quite happy to create the auth tables and ones from an external
app that is included in INSTALLED_APPS but it won't build the tables
from my 'web' folder.
I can put a print statement in the web.models.py and it
On Wed, Jan 27, 2010 at 6:10 PM, Zeynel wrote:
> Hello,
>
> How do I query the the total number of items in the database to put in
> a template?
>
> I want to add to this page http://swimswith.com/search/ that "There
> are currently [X] lawyers in the database."
>
>
Have a
Hello,
How do I query the the total number of items in the database to put in
a template?
I want to add to this page http://swimswith.com/search/ that "There
are currently [X] lawyers in the database."
Thanks
--
You received this message because you are subscribed to the Google Groups
I am really stupid. After cut & Paste I need to double check what i
pasted.
Thank you very much Dan and sorry for wasting your time.
Lesson learned.
On Jan 27, 11:16 am, Daniel Hilton wrote:
> 2010/1/27 Bhaskar Gara :
>
>
>
>
>
> > No luck.
>
> >
On Wed, Jan 27, 2010 at 12:07 PM, thanos wrote:
> It's useless. The "The definitive guide to Django" by Holovaty and
> Kaplan-moss is okay, but the Pro version is really just a waste of
> paper and time.
More helpful than this would be a response to the actual question,
2010/1/27 Bhaskar Gara :
> No luck.
>
> url.py
> url(r'^member/score/compare/$', direct_to_template,
> {'template': 'member_score_compare.html'},
> name='member_score_compare'),
>
>
> view.py
> def prev_score(request):
> template_name = 'member_score_compare.html'
It's useless. The "The definitive guide to Django" by Holovaty and
Kaplan-moss is okay, but the Pro version is really just a waste of
paper and time.
Thanos Vassilakis
On Jan 27, 11:55 am, Achim Domma wrote:
> Hi,
>
> I'm interested in buying the "Pro Django" book. I could
No luck.
url.py
url(r'^member/score/compare/$', direct_to_template,
{'template': 'member_score_compare.html'},
name='member_score_compare'),
view.py
def prev_score(request):
template_name = 'member_score_compare.html'
graph = graphs.BarGraph('vBar')
graph.values = [380,
Hello everyone!
Really strange problem with serving static files with
django.views.static.serve():
So I've got media/css dir with show_indexes=True for serve() method.
It gives me list like this:
Index of css/
# ../
# default.css
# general.css
...
It means that the script is able to locate both
Ubuntu has fairly up-to-date Postgis packages available, I believe. That
might be an easier route to start from if you're unfamiliar with building
from source.
On 1/27/10 12:04 PM, "Alexis Selves" wrote:
> Hello again,
> I have another problem...
> When I want to install
'Pro Django' by Marty Alchin and 'Practical Django Projects' by James
Bennett are also good books you should read.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To
Hello again,
I have another problem...
When I want to install PostGIS using this
http://geodjango.org/docs/install.html#postgis
I receive this:
make -C liblwgeom
make[1]: Entering directory `/home/petr/Skola/postgis-1.4.0/liblwgeom'
gcc -g -O2 -fno-common -DPIC -Wall -Wmissing-prototypes -c
Hi,
I'm interested in buying the "Pro Django" book. I could not find any
hint about what version it's written for. As it covers mostly
internals and the ideas behind Django, it should not be outdated as
quickly as other books. Has anybody read that book and can give some
feedback about how useful
Hi,
I would do something like this:
top_videos = {}
for i in xrange(1,6):
videos = Video.objects.filter(category=i).order_by('-hit_count')
if videos:
top_videos[i] = videos[0]
Then, access the top videos via the top_videos dict.
Cheers,
Gabriel
--
Gabriel de Carvalho
Hi,
On the homepage of my site i display 1 main video and then the most
popular video from each of the 5 categories, which is determined by a
hit count.
Basically i need something like the following
tv_video = Video.objects.filter(category=1).order_by('-hit_count')
But i need an object
Thank you Dan
On Jan 27, 3:40 am, Daniel Hilton wrote:
> 2010/1/27 Bhaskar Gara :
>
>
>
>
>
> > Hi,
>
> > I am very new to django. I am trying to use this library for my
> > graphs
> >http://www.gerd-tentler.de/tools/pygraphs/?page=introduction
>
On Wed, Jan 27, 2010 at 10:02 AM, Malcolm Box wrote:
> It was indented if you looked in the original message text - I suspect your
> (and my) default email program is stripping leading spaces.
>
How odd. Looking at it in Gmail one space has been removed from the front
of
On Jan 27, 10:38 am, Ashok Prabhu wrote:
> Hi,
>
> I have the following view which throws the error "The view
> TCDB.viewdb.views.dbout didn't return an HttpResponse object." I have
> tried various indentation for the return statement. But it doesn't
> seem to help. Can
On Wed, Jan 27, 2010 at 2:54 PM, Karen Tracey wrote:
> On Wed, Jan 27, 2010 at 9:45 AM, Malcolm Box wrote:
>
>> That code looks fine to me. I'd suggest sticking an "import
>> pdb;pdb.set_trace()" as the first line of the view, then stepping through
>>
On 1/27/10 1:29 AM, "cc0" wrote:
> A quick and basic rundown of what I need to do, (my project idea is
> still being hatched);
>
> 1. I have a database with a number of coordinates (we are talking
> probably some ten thousand different coordinates)
>
> 2. I need to
On Wed, Jan 27, 2010 at 9:45 AM, Malcolm Box wrote:
> That code looks fine to me. I'd suggest sticking an "import
> pdb;pdb.set_trace()" as the first line of the view, then stepping through
> the code (run the server with manage.py runserver). That should quickly
>
On Wed, Jan 27, 2010 at 6:23 AM, luupux wrote:
> Hello , im have a newbye question
>
> I have a simple application named proxy and i put simple rss feed .
> This is my error
>
> Request URL:http://localhost:8000/proxy/feeds/feedurl/
> Exception Type:
That code looks fine to me. I'd suggest sticking an "import
pdb;pdb.set_trace()" as the first line of the view, then stepping through
the code (run the server with manage.py runserver). That should quickly
highlight any areas where the code flow isn't as you expect.
Cheers,
Malcolm
On Wed,
Hello , im have a newbye question
I have a simple application named proxy and i put simple rss feed .
This is my error
Request URL:http://localhost:8000/proxy/feeds/feedurl/
Exception Type: ViewDoesNotExist
Exception Value: Could not import
Hi,
I have the following view which throws the error "The view
TCDB.viewdb.views.dbout didn't return an HttpResponse object." I have
tried various indentation for the return statement. But it doesn't
seem to help. Can somebody help?
def dbout(request):
try:
filter_string=
A quick and basic rundown of what I need to do, (my project idea is
still being hatched);
1. I have a database with a number of coordinates (we are talking
probably some ten thousand different coordinates)
2. I need to relate these coordinates to specific regions on a map
(pref. google maps),
Hi,
I'm trying to put a site together for a local charity. I'd like them
to be able to add new pages to the primary and secondary navigation
from the admin site and, importantly, I want them to be able to
specify what secondary pages belong to which primary pages.
I'm trying to do this with
is this an add or an edit form? or both?
i have a similar inlineformset and i need to loop over the inline
objects to set the foreignkey to the parent object like:
if form.is_valid() and formset.is_valid(): # All validation rules pass
new_idea = form.save(commit=False)
Thank you it was my template directory which actually was templates/
photologue/templates. Still, your help was what led me to the result.
Take good care
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
Thank you it was my template directory which actually was templates/
photologue/templates. Still, your help was what led me to the result.
Take good care
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
2010/1/27 Bhaskar Gara :
> Hi,
>
> I am very new to django. I am trying to use this library for my
> graphs
> http://www.gerd-tentler.de/tools/pygraphs/?page=introduction
>
>
> In my Views.py
>
> prev_score(request):
> graph = graphs.BarGraph('vBar')
>
Hi Mike,
Unfortunately it is still not displaying the templates in the
templates/photologue directory. I tried your idea. Is there anything
else you can suggest?
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On Wed, Jan 27, 2010 at 1:21 AM, djangonoob wrote:
> Hi Mike,
>
> Unfortunately it is still not displaying the templates in the
> templates/photologue directory. I tried your idea. Is there anything
> else you can suggest?
>
Make sure that "photologues" is quoted in the tuple and not a string
Hi Mike,
Unfortunately it is still not displaying the templates in the
templates/photologue directory. I tried your idea. Is there anything
else you can suggest?
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Hi Mike,
Unfortunately it is still not displaying the templates in the
templates/photologue directory. I tried your idea. Is there anything
else you can suggest?
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Hi Mike,
Unfortunately it is still not displaying the templates in the
templates/photologue directory. I tried your idea. Is there anything
else you can suggest?
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
Hi Mike,
Unfortunately it is still not displaying the templates in the
templates/photologue directory. I tried your idea. Is there anything
else you can suggest?
Thank you
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
On Jan 27, 1:52 am, Andy wrote:
> I am (still) new to Django and a novice at relational databases, so I
> am having some problems. I've read and read, but can't sort this out.
>
> I save the session data in this view:
> def order(request):
> if request.method ==
Hi Mike,
Yes I noticed that we both had made typos :) No worries I tried your
first example and I will now use this one which I am sure will work.
Thank you very much.
On Jan 27, 10:37 am, Mike Ramirez wrote:
> On Wednesday 27 January 2010 00:32:24 Mike Ramirez wrote:
>
> >
Hi Mike,
Yes I noticed that we both had made typos :) No worries I tried your
first example and I will now use this one which I am sure will work.
Thank you very much.
On Jan 27, 10:37 am, Mike Ramirez wrote:
> On Wednesday 27 January 2010 00:32:24 Mike Ramirez wrote:
>
> >
Hi Mike,
Yes I noticed that we both had made typos :) No worries I tried your
first example and I will now use this one which I am sure will work.
Thank you very much.
On Jan 27, 10:37 am, Mike Ramirez wrote:
> On Wednesday 27 January 2010 00:32:24 Mike Ramirez wrote:
>
> >
On Wednesday 27 January 2010 00:32:24 Mike Ramirez wrote:
> base_tmpl_dir = os_path.join(PROJECT_PATH, 'templates')
> TEMPLATE_DIRS = (
> base_tmpl_dir,
> os_path.join(base_tmpl_dir, photologue),
> )
>
Fixed a typo --- base_tmpl_dir should have a , after it in the tuple.
Mike
--
On Wednesday 27 January 2010 00:24:45 djangonoob wrote:
> Hi. I am new to django and never had to specify more than one
> TEMPLATE_DIRS. I am trying to add a second TEMPLATE_DIR to my existing
> one which looks like this:
>
> TEMPLATE_DIRS = [
> os_path.join(PROJECT_PATH, 'templates'),
> )
>
Thanks foy your replies.
The class Fondo has in truth lots of Textfield to be displayed as CharField
(I am using django.forms to implement a search mask); the one posted was
only an excerpt.
I solved this way:
class FondoForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(FondoForm,
Hi. I am new to django and never had to specify more than one
TEMPLATE_DIRS. I am trying to add a second TEMPLATE_DIR to my existing
one which looks like this:
TEMPLATE_DIRS = [
os_path.join(PROJECT_PATH, 'templates'),
)
The template I would also like to add is under templates/photologue.
85 matches
Mail list logo