Hi all,
I have some questions regarding the creating a table using newform.
Assuming I have a model named Shelf, which has five fields:
item_number(int), item_name(char), item_order(int), item_level(int),
and taken(boolean).
How can I display all the items in a tabular format using the
On Apr 4, 2:24 pm, "Jared Dobson" <[EMAIL PROTECTED]> wrote:
> Hey Graham,
>
> Thanks for you reply. :-) is this your site:http://www.dscpl.com.au/?If
> so you know all about mod_python, and I really appreaciate you helping me
> out. :-)
The following is also my site:
http://www.modwsgi.org
By default profiler.hostshot[1] creates profiling info in "/var/log/
cmsprofile". I am on a shred hosting, and do not have access to this
location. Is there any way I can specify the location without
modifying this django file.
Currently this values is hardcoded into this file as
On Thu, Apr 3, 2008 at 11:31 PM, Iamnewbie <[EMAIL PROTECTED]> wrote:
>
> I am using modelforms instead of newforms. however, I found I have no
> place to use my customized label for each field. newforms offers
>
> forms.ChoiceField(label='MyOwnLabel')
>
> but I can not do it under modelforms,
I am using modelforms instead of newforms. however, I found I have no
place to use my customized label for each field. newforms offers
forms.ChoiceField(label='MyOwnLabel')
but I can not do it under modelforms, anyone has figured out how to do
it? I searched djangoproject, nothing found about
> > Is it possible, from the table object to determine which cell objects
> > are marked as being in row 1?
>
> Let's say your table object is t_obj. Then you can do:
>
> row_one_cells = t_obj.cell_set.filter(row=1)
Is this callable from a template? I'm trying as much as possible to
use the
On Apr 4, 8:37 am, Jared Dobson <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Have anyone ever seen this error i'm on the latest svn trunk for
> django, I have been searching the mailing list to find an answer.
>
> Mod_python is working because i mod_python.testhandler for the same
> apache config
Hello,
Have anyone ever seen this error i'm on the latest svn trunk for
django, I have been searching the mailing list to find an answer.
Mod_python is working because i mod_python.testhandler for the same
apache config section works great.
PythonPath "['/home/'] + sys.path"
> Okay, so whenever I request anything through my apache server I get a
> 404 error. Here are my configuration files.
>
> Apache:
>
> DocumentRoot /home/chainsofheaven.net/html
> ServerName chainsofheaven.net
> ServerAlias *.chainsofheaven.net
>
> allow from all
> Options +Indexes
>
>
>
Hi,
On Apr 3, 5:49 pm, meppum <[EMAIL PROTECTED]> wrote:
> I have a simple parent child relationship. What i'm basically looking
> to do is conditionally create a new child for a given parent anytime
> that parent is modified in a certain way (certain fields). Should I
> use signals for this or
Hi,
On Apr 3, 5:16 pm, Jared <[EMAIL PROTECTED]> wrote:
> I have something of an odd question, I think... I have a couple of
> objects setup something like this (there are more fields, but this
> seems to be enough of a relevant example)...
>
> class table(models.Model):
> name =
www.yenimakale.com
Herkese Selam,
Bu e-postanın amacı sizleri katılıma ve insanları bilgilendirmeye
teşvik etmektir.
* Paylaşmayı sever misiniz?
* İnsanlar bilinçlensin ister misiniz?
* Sizin bildiğiniz ama çoğu insanın bilmediği konular mı var?
* Bir konuda insanlara bilgi vermeniz mümkün mü?
I'm certainly no django expert, but have you checked the ownership and
permissions on the html area you're trying to serve?
On Apr 3, 5:13 pm, pieaholicx <[EMAIL PROTECTED]> wrote:
> Okay, so whenever I request anything through my apache server I get a
> 404 error. Here are my configuration
I have something of an odd question, I think... I have a couple of
objects setup something like this (there are more fields, but this
seems to be enough of a relevant example)...
class table(models.Model):
name = models.CharField()
class cell(models.Model):
name = models.CharField()
Okay, so whenever I request anything through my apache server I get a
404 error. Here are my configuration files.
Apache:
DocumentRoot /home/chainsofheaven.net/html
ServerName chainsofheaven.net
ServerAlias *.chainsofheaven.net
allow from all
Options +Indexes
SetHandler python.program
When will be these features available in the main branch of django ??:
http://code.djangoproject.com/changeset/7043
http://code.djangoproject.com/browser/django/branches/queryset-refactor/django/db/models/query.py#L263
what should be my steps if i want to use it now?
Cancel request for help. I did it a better way - or at least
simpler. Created the parent and child forms separately and attached
the child forms to the parent outside the form itself.
If anybody is interested, I'll post the code that worked.
I wouldn't use it.
For the admin, I find myself using javascript just fine to do what I
want. I usually have a middleware that sets the current user id as a
cookie, then run something like the following javascript in the admin
on window load: (requires jquery with cookie plugin)
/*
On Apr 3, 3:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> If you are counting hits as every time it is accesed from the db, I
> would overide the __init__ method.
I'd rather be explicit. Writing {{ obj.get_hits }} is really not that
taxing.
You can also modify the get_hits() method
If you are counting hits as every time it is accesed from the db, I
would overide the __init__ method.
On Apr 3, 1:58 pm, Mike Axiak <[EMAIL PROTECTED]> wrote:
> Hey Evan,
>
> If you're looking for performance, you might want to try using
> memcached's 'inc' command. You might have to get the
As of now, I have setup image thumbnail creation performed on same
machine as apache and user waits for the thumbnail to be created. I
would like to move thumbnail task to another dedicated machine. User
will upload pictures and these pics will need to be moved to dedicated
machine from web
Hey Evan,
If you're looking for performance, you might want to try using
memcached's 'inc' command. You might have to get the backend directly
from django's cache api and hence break abstraction, but it might be
worth it.
If the exact number of hits aren't that important to you, maybe you
can
Hi all,
I'm deploying django 0.96.1 on Apache + mod_python on debian etch. In
the setting.py I have:
LANGUAGES = (
('nl', 'Dutch'),
)
LANGUAGE_CODE = 'nl'
USE_I18N = True
On development using 'manage.py runserver' I have the admin app
translated in Dutch. Behind Apache + mod_python the
On Thu, Apr 03, 2008 at 01:08:38PM -0500, James Bennett wrote:
>
> On Thu, Apr 3, 2008 at 12:57 PM, Alessandro Dentella <[EMAIL PROTECTED]>
> wrote:
> > more. I'd like to understand why one of the 2 query used the cache and the
> > other didn't.
>
> Nothing in Django will magically cache
On Thu, Apr 3, 2008 at 12:57 PM, Alessandro Dentella <[EMAIL PROTECTED]> wrote:
> more. I'd like to understand why one of the 2 query used the cache and the
> other didn't.
Nothing in Django will magically cache things when you haven't told
Django to cache things.
Nothing in PostgreSQL will
On Thu, Apr 03, 2008 at 06:51:49PM +0200, Constantin Christmann wrote:
>
> Hi Sandro,
>
> this is indeed a caching issue. But I guess this is more of a feature
> that a bug, because with caching enabled you keep an old page some time
it's a feature if you can control it...
> until it's
It's a known bug and they're not fixing it in old-forms. New-forms
will have a complete re-write of in-line editing.
There is a patch for old-form on the bug page, but it doesn't want to
work for me.
http://code.djangoproject.com/ticket/1939
On Mar 26, 6:40 pm, ocamljohn <[EMAIL PROTECTED]>
On Thu, Apr 03, 2008 at 11:50:35AM -0500, James Bennett wrote:
>
> On Thu, Apr 3, 2008 at 11:04 AM, sandro dentella <[EMAIL PROTECTED]> wrote:
> > Any light to understand/solve it?
> > Thanks in advance
>
> Are you using MySQL? Its (server-side, not part of Django, but rather
> part of the
Apparently nobody has any suggestions about the original code.
(If my presentation was too difficult to parse, wd I be better off
putting it in dpaste? Or maybe it's too clueless in some way? Or too
complicated?)
I hesitate to respond to my own message, but I'm still stumped, and
have more info.
i'm using admin app and found myself in situation where i need to
store current user when saving item so i've overwritten save method on
model and with threadlocals middleware fetched current user.
threadlocals middleware url:
http://code.djangoproject.com/wiki/CookBookThreadlocalsAndUser
is
Hi again :)
that sounds promising! I will definitively look into that!!
Karen Tracey schrieb:
On Thu, Apr 3, 2008 at 9:47 AM, Constantin Christmann <[EMAIL PROTECTED]>
wrote:
Hello,
I am working on the following problem now since yesterday and have no
idea what could be the
On Thu, Apr 3, 2008 at 10:50 AM, Darien García <[EMAIL PROTECTED]> wrote:
>
> I'm having a huge problem deploying Django in ubuntu-gutsy, because
> I'm trying python manage.py syncdb and I'm getting
> "ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
>
Hello,
I have the following field in my Order class:
payment = models.DecimalField("Payment Amount", max_digits=6,
decimal_places=2, blank=True, null=True)
As as example let's say I create a new Order and don't put anything in
the payment field. For some reason when I'm viewing Orders in the
Hi Sandro,
this is indeed a caching issue. But I guess this is more of a feature
that a bug, because with caching enabled you keep an old page some time
until it's expired.
Adjacent request get this old page stored in the cache which decreases
server and database load.
If you bypass this
On Thu, Apr 3, 2008 at 11:04 AM, sandro dentella <[EMAIL PROTECTED]> wrote:
> Any light to understand/solve it?
> Thanks in advance
Are you using MySQL? Its (server-side, not part of Django, but rather
part of the MySQL database server itself) query cache is known to
cause these sorts of
this is the answer, but the problem is partly solved.
On Thu, Apr 03, 2008 at 09:29:32AM -0700, Peter Rowell wrote:
>
> > Any light to understand/solve it?
>
> With any sort of suspected caching problem (and this certainly smells
> like one), Step 1 is always to disable caching, restart the
Hi Karen,
thanks for your reply!
I did run some experiments on that issue and found out that the dirty
status after the execution of raw SQL isn't updated (I guess this is
because the database wrapper cannot know if the statements require a
commit). So if you run a query which requires a
Slightly off topic, but might be relevant:
I'm having a similar dilemma in some of my projects. I'd also like to
track the number of views a page (or object i guess) has, but i'm
worried about performance. For highly viewed pages (1000 hits /hr+)
I'd like to take advantage of caching, I
On Thu, Apr 3, 2008 at 9:47 AM, Constantin Christmann <
[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am working on the following problem now since yesterday and have no idea
> what could be the reason for this behavoir:
>
> Inside my view (I have TransactionMiddleware enabled) I execute some raw
>
> Any light to understand/solve it?
With any sort of suspected caching problem (and this certainly smells
like one), Step 1 is always to disable caching, restart the server,
and see if the problem magically goes away. If it does, you can put
away the Xanax and start looking at where and how
Hi all,
I've being using django for a while now with great satisfaction, but
I've never needed to cope with cache system.
Now I'm hit by a problem that I believe is dependant on cache. I
have a form (newform), that in the .save()
method updates an object (it works!). Then reloading the
bcurtu wrote:
I know that version 1.0 will be out when django people feel
comfortable with it. That's fair enough... However... how long will it
take roughly? What's the work pace?
The devs have said that it'll be done when its done. There are two
branches, newforms-admin and
Or you could use something that's already fairly far along (AFAIK)
RDFAlchemy is a project to wrap triple stores in an SQLAlchemy kind of
syntax. If it isn't right for you, it should at least give you some pointers
to get you started. I believe the queryset-refactor branch has some changes
that
The short answer (which you seem familiar with) is it's done when its, for
the most part, bug-free. A very approximate approximation would be
http://tinyurl.com/28kzrk when most of those are closed. In terms of work
pace, you can toggle on closed tickets as well and see the rate people are
closing
On Apr 3, 9:19 am, bcurtu <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I come form j2ee world, this is my first project in Django and usually
> I feel a bit lost about general concepts.
>
> My project has bit too much business code, it's a kind of datamining
> tool. I have created a set of
I'm having a huge problem deploying Django in ubuntu-gutsy, because
I'm trying python manage.py syncdb and I'm getting
"ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb
module: No module named pkg_resources"
Can
Hello, why does populate_xheaders only work if you are authenticated
and staff OR if the request comes from an internal IP? It would be
nice if I could have these: response['X-Object-Type']
response['X-Object-Id']
for normal requests to work with middleware that I am writing.
Is it a security
On Thu, Apr 3, 2008 at 9:28 AM, Kip Parker <[EMAIL PROTECTED]> wrote:
> Thanks, that's the one! I'm a bit wary of using the branches for
> production sites, do you have any experience of using the newforms-
> admin branch?
>
Personally I've been using newforms-admin for months and have found it
Hello,
I am working on the following problem now since yesterday and have no idea what
could be the reason for this behavoir:
Inside my view (I have TransactionMiddleware enabled) I execute some raw SQL
(UPDATE) and afterwards I save form data to the database.
With postgres this works fine
On Thu, Apr 3, 2008 at 9:00 AM, Roland Hedberg <[EMAIL PROTECTED]>
wrote:
>
> Hi!
>
> I'd like to add the possibility to use a RDF store as database to Django.
>
> Where should I start ?
>
> I've made a brief walk-through the code and I'm not absolutely sure
> about the right place to enter my
Thanks, that's the one! I'm a bit wary of using the branches for
production sites, do you have any experience of using the newforms-
admin branch?
On Apr 3, 1:51 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote:
> On Wed, Apr 2, 2008 at 3:18 PM, Kip Parker <[EMAIL PROTECTED]> wrote:
>
> > This model
On Thu, Apr 3, 2008 at 8:46 AM, shabda <[EMAIL PROTECTED]> wrote:
> I have TransactionMiddleware in my settings.py, to tie transactions to
> HttpRequests. I also have a custom mIddleware which has a
> processException, it catches the Exceptions and returns user friendly
> responses for the
Hi!
I'd like to add the possibility to use a RDF store as database to Django.
Where should I start ?
I've made a brief walk-through the code and I'm not absolutely sure
about the right place to enter my changes and I'd like to be that before
attempting anything.
-- Roland
Graham,
Thanks for your quick response. It was a SELinux problem. And i realize
that chmoding to 777 is a bad idea, at the time I was just trying to get it
to work.
Jon
On Wed, Apr 2, 2008 at 5:47 PM, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
>
>
>
> On Apr 3, 12:54 am, JLathem <[EMAIL
On Thu, Apr 3, 2008 at 4:58 AM, Constantin Christmann <
[EMAIL PROTECTED]> wrote:
> Hope someone can help me out here:
> I am using TransactionMiddleware, are raw SQL queries inside a view part
> of the views transaction?
>
I was hoping someone else would answer your other question on this
On Wed, Apr 2, 2008 at 6:00 PM, Josh <[EMAIL PROTECTED]> wrote:
>
> Sorry, here's the full traceback:
>
> Environment:
>
> Request Method: GET
> Request URL:
> http://myproject.webfactional.com/admin/words/word/278/delete/
> Django Version: 0.97-pre-SVN-7388
> Python Version: 2.5.1
> Installed
On 4/3/08, Tony <[EMAIL PROTECTED]> wrote:
>
> I keep getting an AttributeError then I specify
> "self.assertEqual(response.template.name, 'index.html')"
> I keep getting...
> AttributeError: 'list' object has no attribute 'name'
>
> Is there something I have missed in the setup?
Yes, but
I keep getting an AttributeError then I specify
"self.assertEqual(response.template.name, 'index.html')"
I keep getting...
AttributeError: 'list' object has no attribute 'name'
Is there something I have missed in the setup?
Thanks in advance for any help,
Tony
On 4/3/08, Tim Chase <[EMAIL PROTECTED]> wrote:
>
> Following Russ Magee's suggestion[1] regarding custom
> test-runners, I'm trying to figure out how to test my
> test-runner. I dug around in the Django source, but I didn't see
> anything in the tests/ directory that exercised the existing
I'm surprised to see this suggestion of storing a SQLite db in version
control. Don't you quickly run into problems where two developers each
write new data to the database, and then cannot merge their changes? Or
do you have a read-only database?
--Ned.
http://nedbatchelder.com/blog
Brian
I'm trying to declare two identical blocks in a template that I'm
extending from other templates. This throws the TemplateSyntaxError.
Any ideea on how I can get arround this? I can think of a couple of
examples when it would be useful to repeat a block in a template.
Thanks
Ah sweet, thanks DR.
It doesn't tell you that in the documentation, but I guess thats the
reason for loading fixtures.
On 3 Apr, 10:19, Daniel Roseman <[EMAIL PROTECTED]> wrote:
> Tony wrote:
> > Hi
>
> > I have tried numerous ways to login through client() but it keeps
> > returning false.
> >
Tony wrote:
> Hi
>
> I have tried numerous ways to login through client() but it keeps
> returning false.
> I have tested it in the shell and it works fine and returns
> login=true.
> But in my tests.py file, it keeps failing the test because it keeps
> returning login=false.
>
> Here is my
Hi Andy,
a good start is to have a look at chapter 19 in the django book,
available online under http://djangobook.com/en/1.0/chapter19/
Additionally, chapter 14 covers Cross-site request forgery
http://djangobook.com/en/1.0/chapter14/
Daniel
On Thu, Apr 3, 2008 at 9:41 AM, andy baxter
cheap Tales of Pirates (TOP) GOLD in www.pkxman.com
cheap MapleStory Mesos (MS) in www.pkxman.com
Check out our great prices on Tales of Pirates (TOP) Gold!
Delivery in 5 minutes 7/24 Service
No Waiting, No Bidding. www.pkxman.com - Direct Sale Service offers
you the best and
fastest way
Hope someone can help me out here:
I am using TransactionMiddleware, are raw SQL queries inside a view part
of the views transaction?
Thanks,
Constantin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
Hi
I have tried numerous ways to login through client() but it keeps
returning false.
I have tested it in the shell and it works fine and returns
login=true.
But in my tests.py file, it keeps failing the test because it keeps
returning login=false.
Here is my script:
"""
from django.test import
> I tried doing what you suggested, but now it gives me the error
> 'RegexURLResolver' object has no attribute 'rindex' when I try to go
> to the admin page (or any page that exists, for that matter. Pages
> that don't exist get an unhandled exception).
Can you show us your url setup as you have
As far as I can remember the file containing the tests should be
called : "tests.py"
--yml
On Apr 2, 9:01 pm, Tony <[EMAIL PROTECTED]> wrote:
> Ah, that makes it alot clearer.
>
> I've had a go at it but I can't seem to get it to run my test.py file.
> Any reason why that might be?
>
> Thanks
hello,
Is there any documentation online about security issues when using
django? I'm assuming when writing code for my django app that I don't
have to worry about things like quoting strings sent to the database
because the django db api will already do that, but other things I'm not
so
andy baxter wrote:
>
> Not sure if it's quite an answer to your question, but I've been dealing
> with a similar problem which is how to keep the test data I've added to
> the system between (mostly minor) changes to the database. The approach
> I've taken is as follows:
>
> - before making
Julien wrote:
> Hi,
>
> We're using SVN between several developers to work on the same project
> and it's working quite well. But it's not as simple concerning the
> database.
>
> Each of us has a local database to muck around with, and if one of us
> makes a change in the models that implies
On Thu, Apr 3, 2008 at 4:27 AM, Ronny Haryanto <[EMAIL PROTECTED]> wrote:
>
> On Thu, Apr 3, 2008 at 7:36 AM, Julien <[EMAIL PROTECTED]> wrote:
> > We're using SVN between several developers to work on the same project
> > and it's working quite well. But it's not as simple concerning the
>
73 matches
Mail list logo