Thank you all for your comments. Perhaps I should clarify:
1. I'm not really interested in what is in the querystring, I'm only
interested in what is being sent as part of the POST request.
2. The method's full body is posted here: http://dpaste.com/380708; the
method "breaks" at line 8 with t
The log entries for a session are here: http://dpaste.com/380749
--
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
django-users+unsu
Hello,
Could you please advice if it is possible and where i could read OR at
least that keywords should search for the following question.
Is there a way to submit List = [Q(word__starts='search_input'),
Q(date='search_input') ,]
to model.objects.filter (List).
How i have to formulate such
On Thu, Feb 3, 2011 at 9:10 AM, gintare wrote:
> Hello,
>
> Could you please advice if it is possible and where i could read OR at
> least that keywords should search for the following question.
>
> Is there a way to submit List = [Q(word__starts='search_input'),
> Q(date='search_input') ,]
>
On Thursday 03 February 2011 11:10:51 gintare wrote:
> Hello,
>
> Could you please advice if it is possible and where i could read OR at
> least that keywords should search for the following question.
>
> Is there a way to submit List = [Q(word__starts='search_input'),
> Q(date='search_input') ,
answer to my previous question about different length queries
http://docs.djangoproject.com/en/dev/topics/db/sql/
#for p in Person.objects.raw('SELECT * FROM myapp_person')
Is it possible to post all the question which i send immediately?
Sometimes i find answer by myself.
I also soon would like
On Thu, Feb 3, 2011 at 9:51 AM, gintare wrote:
>
> answer to my previous question about different length queries
> http://docs.djangoproject.com/en/dev/topics/db/sql/
> #for p in Person.objects.raw('SELECT * FROM myapp_person')
>
> Is it possible to post all the question which i send immediately?
Hi,
I need to pass some extra parameters in some admin popups. For
example, this is the default URL for an arbitrary popup:
http://localhost:8081/admin/web/systemgroup/add/?_popup=1
What I want is add a new element on the dict queryset:
http://localhost:8081/admin/web/systemgroup/add/?_popup=1&co
On Thursday, February 3, 2011 2:09:56 AM UTC, Osiaq wrote:
>
> Hi all!
> I'm receiving the form from index.html and redirecting to order.html
> I would like to change "customer" value before redirection.
> When I try to modify it, Im getting "object does not support item
> assignment"
> How ca
On Thu, Feb 3, 2011 at 2:09 AM, Osiaq wrote:
> Hi all!
> I'm receiving the form from index.html and redirecting to order.html
> I would like to change "customer" value before redirection.
> When I try to modify it, Im getting "object does not support item
> assignment"
> How can I change "customer
Hi,
I just installed the django-admin-tools app but my django installation
doesn't load the css, js and other static files.
in settings.py I have:
STATIC_ROOT = '/home/ucp/trunk/static/'
STATIC_URL = '/static/'
and when i try to load
http://localhost:8081/static/admin_tools/css/dashboard.css I ge
I did the following to enable memcache:
1 ) install memcache and it is running with default values: /usr/bin/memcached
-m 64 -p 11211 -u nobody -l 127.0.0.1
2) put a decorator over my view @cache_page(60 * 2)
3) enable cache panel in debug toolbar
The Problem is, that the edebug panel says 0 f
Hi Chris,
thanks for the info. My tables won’t have many rows and I don’t have the time
for optimazation, especially if it is not necessary, but I will keep your words
in mind!
Cheers
Ivo
On 02.02.2011, at 06:10, Chris Matthews wrote:
> Hi Ivo,
>
> SQL is like regular expressions. You can g
Hi,
I am using the django development server to locally develop my web
app. I currently have an issue whereby if I POST a file to the webapp
the view that it relates to isn't hit. The reason the view isn't being
matched is that the POST request (reported in the debug output of the
dev web server)
Le 3 févr. 2011 à 12:55, Ivo Brodien a écrit :
> I did the following to enable memcache:
>
> 1 ) install memcache and it is running with default values:
> /usr/bin/memcached -m 64 -p 11211 -u nobody -l 127.0.0.1
>
> 2) put a decorator over my view @cache_page(60 * 2)
>
> 3) enable cache panel
On Thu, Feb 3, 2011 at 12:51 PM, Marc Aymerich wrote:
> Hi,
> I just installed the django-admin-tools app but my django installation
> doesn't load the css, js and other static files.
>
> in settings.py I have:
> STATIC_ROOT = '/home/ucp/trunk/static/'
> STATIC_URL = '/static/'
>
> and when i try
Hello,
SiliconIndia is organizing WebApps 2011 at Pune on Feb 26th,
2011.Drawing well-renowned thought-leaders, contributors,
influencer's, and organizations in the Web Development space, the
conference offers insight to develop industry-leading Web Development
projects. The conference brings tog
Hi!
> I assume you configured the cache backend to point to memcache, didn't you ?
yes :)
in my settings.py I have
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
try:
from local_settings import *
except ImportError:
On Thu, Feb 3, 2011 at 12:26 PM, Ivo Brodien wrote:
> Hi!
>
>> I assume you configured the cache backend to point to memcache, didn't you ?
>
> yes :)
>
> in my settings.py I have
>
>
>
> CACHES = {
> 'default': {
> 'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
>
> from django.core.cache import cache
> print cache
>
>
> In the shell it is using the locmem which I haven’t configured anywhere...
> strange!
I'm not sure it is.
Can you make sure you are using django 1.3 ?
in the shell do:
import django
print django.VERSION
If it says 1, 2, whatever, your c
On 03.02.2011, at 13:39, Xavier Ordoquy wrote:
> I'm not sure it is.
> Can you make sure you are using django 1.3 ?
> in the shell do:
> import django
> print django.VERSION
>
> If it says 1, 2, whatever, your configuration isn't correct as CACHES is for
> 1.3
>
> Xavier.
ahh! ok. I was looki
views.py "if statements" recognize that the box was checked.
I am not able to return the checkbox state back to web.html
I would like to see the last checkbox choices in my page.
web.html
views.py
def xxx(request):
cbSMWord = request.POST.get('cbSMWord ','')
if (cbSMWord): print '
i've got that added in and ran a syncdb and i'm stuck on this err:
django.core.exceptions.ImproperlyConfigured:
InventoryAdmin.readonly_fields[0], 'BarCode' is not a callable or an
attribute of 'InventoryAdmin' or found in the model 'Inventory'.
but I'm not seeing anything wrong with my readonly
nevermind... it was a case issue... you know if python knows there's
an error with case it would just say "hey check the case here"
On Feb 3, 12:31 am, Karl Bowden wrote:
> On 3 February 2011 16:14, Bobby Roberts wrote:
>
>
>
> > considering this model:
>
> > class Inventory (models.Model):
On 03.02.2011, at 13:38, Tom Evans wrote:
> You don't specify what version of django you are using. I suspect you
> are referring to the trunk/1.3 docs, and using 1.2. In 1.2, the cache
> is controlled by settings.CACHE_BACKEND, which defaults to locmem if
> omitted.
You are right I am using 1.2
I'm setting up a foreignkey field in my model as follows:
InventoryFunction =
models.ForeignKey('AppSettings.InventoryOption',
verbose_name=_('InvFunction'), related_name='InvFunction',blank=False,
null=False)
result from syncdb:
scanning.inventory: Accessor for field 'InventoryFunction
It's hard to provide useful help when we see only part of the story, and
that story changes over time (e.g. the line of code you identify in the
dpaste posting as being where the error occurs does not match the line of
code seen in the first traceback you posted).
Since you are dealing with a 3rd
On Feb 3, 6:04 am, Marc Aymerich wrote:
> On Thu, Feb 3, 2011 at 12:51 PM, Marc Aymerich wrote:
> > Hi,
> > I just installed the django-admin-tools app but my django installation
> > doesn't load the css, js and other static files.
>
> > in settings.py I have:
> > STATIC_ROOT = '/home/ucp/trunk/s
On Thu, Feb 3, 2011 at 1:32 PM, Bobby Roberts wrote:
> I'm setting up a foreignkey field in my model as follows:
>
> InventoryFunction =
> models.ForeignKey('AppSettings.InventoryOption',
> verbose_name=_('InvFunction'), related_name='InvFunction',blank=False,
> null=False)
>
> result from
here ya go:
class InventoryOption (models.Model):
id = models.AutoField (primary_key=True)
name = models.CharField (max_length=50, blank=False,
db_index=True)
active = models.IntegerField(blank=False,
choices=active_choices)
order = models.IntegerField(blank=True,
Hello,
I often use
manage.py dumpdata --indent 2 > initial_data.json
and then manipulate initial_data.json.
When I remove my database file and run manage.py syncdb almost all
data from inital_data.json are installed. (Many errors only go away
when the database file is removed.) But manage.py as
On Thu, Feb 3, 2011 at 2:58 PM, Brian Neal wrote:
> On Feb 3, 6:04 am, Marc Aymerich wrote:
>> On Thu, Feb 3, 2011 at 12:51 PM, Marc Aymerich wrote:
>> > Hi,
>> > I just installed the django-admin-tools app but my django installation
>> > doesn't load the css, js and other static files.
>>
>> >
On Thu, Feb 3, 2011 at 2:05 PM, Bobby Roberts wrote:
> here ya go:
>
>
>...
> models.ForeignKey('AppSettings.InventoryOption',
> verbose_name=_('InvFunction'),
> related_name='inv_function',blank=False, null=False)
So you already changed it?
I can't reproduce this, even when I change the related
> What do I have to do to avoid having to define a superuser each time?
you can dump the data of the auth app and than load it again.
s.th. like this:
./manage.py dumpdata --indent=4 auth > fixtures/auth.json
./manage.py dumpdata --indent=4 sessions > fixtures/sessions.json
you can do a mana
yeah i changed the related name to see if that would make any
difference... the error baffles me.
On Feb 3, 9:18 am, Tom Evans wrote:
> On Thu, Feb 3, 2011 at 2:05 PM, Bobby Roberts wrote:
> > here ya go:
>
> >...
> > models.ForeignKey('AppSettings.InventoryOption',
> > verbose_name=_('InvFuncti
Circular joins are indeed a very likely reason which usually points to
a poor model design. In fact I ran into the same problem just
yesterday. I hooked Django admin to a legacy app that had a related
field to table A and related field to table B that was also related to
A. And that created an ever
Hi!
Using geodjango at home on ubuntu everything is ok.
but im trying to install it on winXP on my work
and have some problems with lib geos.
Ive installed PostGis.I wrote some code like this:
from django.conf import settings
settings.configure(GEOS_LIBRARY_PATH=r'c:\Python27\DLLs
\libgeos-3-2-2.
Thank you :)
On Feb 3, 1:41 pm, Tom Evans wrote:
> On Thu, Feb 3, 2011 at 2:09 AM, Osiaq wrote:
> > Hi all!
> > I'm receiving the form from index.html and redirecting to order.html
> > I would like to change "customer" value before redirection.
> > When I try to modify it, Im getting "object doe
My bad, sorry! That was simple
form['customer']='modified_customer_name'
On Feb 3, 1:23 pm, Daniel Roseman wrote:
> On Thursday, February 3, 2011 2:09:56 AM UTC, Osiaq wrote:
>
> > Hi all!
> > I'm receiving the form from index.html and redirecting to order.html
> > I would like to change "custo
hi,
I think mptt or treebeard may be a good fit for my project, but I'm
not sure. Currently I have the project setup in a conventional way
with no explicit tree structure, just a pattern of ForeignKey usage.
It works, but I'm beginning to get into some complexity.
The project is for building (comp
On 2011-02-03, at 4:46 AM, gintare wrote:
>
You don't have " around cbSMWord so the full variable name is 'cbSMWord'.
>cbSMWord = request.POST.get('cbSMWord ','')
You have a space on the end of the variable here. 'cbSMWord ' is not equal to
'cbSMWord'
> return render_to_response('c:/P
Hello,
I'm having the following situation.
I got a model "signup" which has a status field (todo, done,
processing, etc.) I have an admin view for it which should show all
signups and I have a filter that will let me do filter by status.
Therefore the person processing the sigups will just click th
KG,
I've been a PHP developer for years and haven't reached outside of PHP
pretty much ever. After writing the same code over and over and
over and over and over again and always dealing with the same issues
(tweaking the database through a database manager, writing admin
interfaces, not having a
Firebug shows the page, and the page changes to the color I set, if I
click on sections in the Firebug window. Not sure what is going on
with that.
On Feb 2, 5:31 pm, Jon J wrote:
> Firebug is a great tool for diagnosing problems like this, and
> Chromium has even better functionality built in!
>
I am building an app that passes a domain name to urls.py like so "/
sites/domain.com/'
but I cannot get my urls.py to match the 'domain.com' it only seems
to match if i just use domain without the dot
I have tried
(r'^zones/^[^/]+/', get_domain),
(r'^zones/(?P\w+)/', get_domain),
I think i got it now with
(r'^zones/(?P[.\w]+)/$', get_domain)
On Feb 3, 10:44 am, mike171562 wrote:
> I am building an app that passes a domain name to urls.py like so "/
> sites/domain.com/'
>
> but I cannot get my urls.py to match the 'domain.com' it only seems
> to match if i just use do
Thanks. I'll take a look at the articles.
On Feb 2, 3:42 am, Derek wrote:
> The same question was asked on
> stackoverflow:http://stackoverflow.com/questions/2303268/djangos-forms-form-vs-form...
> Its a good explanation - I liked the bit at the end:
> "The similarities are that they both genera
> I am building an app that passes a domain name to urls.py like so "/
> sites/domain.com/'
>
> but I cannot get my urls.py to match the 'domain.com' it only seems
> to match if i just use domain without the dot
>
> I have tried
>
> (r'^zones/^[^/]+/', get_domain),
> (r'^zones/(?P\w+)/', g
On Thu, Feb 3, 2011 at 4:50 PM, mike171562 wrote:
> I think i got it now with
>
> (r'^zones/(?P[.\w]+)/$', get_domain)
>
>
. matches any character, not just dot. Your class '[.\w]+' will
actually match anything and everything. I think you want '[\.\w]'.
Cheers
Tom
--
You received this message
On Wed, Feb 2, 2011 at 7:55 PM, octopusgrabbus
wrote:
> I am trying to load static content (one css file) from the same apache
> server, using a different virtual host. I have no errors, but the css
> file appears not to load. How can I debug this further?
>
> The load shows up in /var/log/apache2
You know, even if PHP had a framework like Django, I wouldn't use it. PHP is
clunky, has horrible code syntax, piss poor exception handling, awful
garbage collection, weirdly named functions, and just feels 'wrong'. And
don't even get me started on performance!
On Thu, Feb 3, 2011 at 4:13 PM, Jon
Hi Mike,
May I suggest RegexBuddy for anything regex related in the future, it have
saved me a *lot* of time!
Cal
On Thu, Feb 3, 2011 at 4:44 PM, mike171562 wrote:
> I am building an app that passes a domain name to urls.py like so "/
> sites/domain.com/'
>
> but I cannot get my urls.py to ma
Here you go: http://www.regexbuddy.com/screen.html
On Thu, Feb 3, 2011 at 4:55 PM, Cal Leeming [Simplicity Media Ltd] <
cal.leem...@simplicitymedialtd.co.uk> wrote:
> Hi Mike,
>
> May I suggest RegexBuddy for anything regex related in the future, it have
> saved me a *lot* of time!
>
> Cal
>
>
>
> On Thu, Feb 3, 2011 at 4:50 PM, mike171562 wrote:
>> I think i got it now with
>>
>> (r'^zones/(?P[.\w]+)/$', get_domain)
Depending on what you plan to do with the matched string later, you
may want to limit it to 256 characters or incorporate some more
checks, like:
r"^zones/(?P(?:[A-Za-z-]{1
2011/2/3 Łukasz Rekucki :
> On 3 February 2011 17:52, Tom Evans wrote:
>>
>> . matches any character, not just dot. Your class '[.\w]+' will
>> actually match anything and everything. I think you want '[\.\w]'.
>>
>
> Not if used in a character class:
>
re.match("[.]", ".")
> <_sre.SRE_Match
"maybe a chapter needs to be added as the
13th chapter in a Book, for example"
MPTT and the other trees are mainly used on data structures where node
insertion might happen anywhere on a tree.
In your case, you only put chapters in books and would never move a
chapter inside of a 'Library' or insi
Las try or I will report it as a bug as I think it is.
2011/1/28 Miguel Araujo
> Well,
>
> I'm just trying to figure out if this should be reported.
>
> Thanks, regards
>
>
> Miguel Araujo
> @maraujop
>
> 2011/1/22 Miguel Araujo
>
> Hi everyone,
>>
>> I have a model A that has a overwritte
obviously using django contrib auth
works fine in Firefox but IE8 keeps throwing CSRF token error on attempting
to log into the admin interface.
No admin templates have been altered
using django 1.2.3 in pythonpath
even tried changing internet options to allow all cookies!!!
tried creating a
Which key is used in 1.2.4 to create the memcache keys?
I am having some html in my database whose keys I want to delete from the
memcache after they have been saved (or via admin actions)
I don’t know how to get their keys and even doing a cache.clear() in the action
and console did not delete
Hi all , I install dionaea on my Debian 5.0 (VM)
when i run carniwwwhore :
debian:/opt/carniwwwhore# python manage.py runserver
Error: cannot import name SpooledTemporaryFile
debian:/opt/carniwwwhore# python --version
Python 2.5.2
any idea ? thanks
--
You received this message because you are
On Thursday, February 3, 2011 6:55:56 PM UTC, b...@live.se wrote:
>
> Hi all , I install dionaea on my Debian 5.0 (VM)
> when i run carniwwwhore :
>
> debian:/opt/carniwwwhore# python manage.py runserver
> Error: cannot import name SpooledTemporaryFile
>
> debian:/opt/carniwwwhore# python --ver
Yeah, it was just an example
On Feb 2, 4:28 am, Daniel Roseman wrote:
> On Tuesday, February 1, 2011 11:52:49 PM UTC, oyiptong wrote:
>
> > Hello,
>
> > I have been seeing a big performance degradation with my application
> > in production.
> > The traffic is roughly 2.5K pageviews per day. I can
That was exactly my point. I got around my issue by just using the
dictionaries all over my application.
This did bypass the creation of the objects. My cpu usage and load
average went to drastically.
On Feb 2, 4:33 am, Thomas Weholt wrote:
> I might be missing something here, but in the first e
Is there a way to access kwargs from a custom/inclusion tag?
--
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
django-users+unsubscr
Well, PHP does have its intended purpose and accomplishes its
objectives nicely. If you're building a one-shot, off-the-cuff
application with no forethought to design or scalability, then PHP is
great. It's not hard for novices to use (object orientation is
optional, etc) and uses a much easier to
Hey there, I am trying to delete Events as chosen by a by a user using
check boxes to check of which events they want to be deleted. But for
some reason whenever I call request.POST.get('event_list') Nothing is
received even though boxes are checked and I end up with nothing.
Here is my template a
I am a hobbyist programmer started with pascal and then perl. Loved
perl, but once I had to hire a programmer to do some enhancements that I
did not have time for - he did a good job, but after he left I found I
could not understand a word of what he had done. Then someone introduced
me to python a
I found a plugin that combines the two but you cant look at the source
unless you have been approved by the creator. Is there any viable,
simple way to use the jquery grid plugin with django fairly quickly?
--
You received this message because you are subscribed to the Google Groups
"Django use
Sorry I don't quite understand what you mean, can you give a code example of
what you are trying to do / wish for it to do?
On Thu, Feb 3, 2011 at 9:41 PM, J wrote:
> Is there a way to access kwargs from a custom/inclusion tag?
>
> --
> You received this message because you are subscribed to the
May I ask, how well did you get along with Zope? From what I can tell,
Django is suited for SME, where as Zope is the kinda thing that banks would
be using etc.
On Fri, Feb 4, 2011 at 12:50 AM, Kenneth Gonsalves
wrote:
> I am a hobbyist programmer started with pascal and then perl. Loved
> perl,
I have not specifically used jquerygrid but it looks like it will
request the data from a URL and all that you need to do is set up a view
there to return the proper json objects to it.
It is basically like any other django view, just that you would be
returning json instead of html. I have b
On Thu, Feb 3, 2011 at 12:30 PM, Miguel Araujo wrote:
> Las try or I will report it as a bug as I think it is.
>
Your original post was a bit sparse on code/traceback details for the actual
problem you observed. The only specific code you showed was the lines you
added to work around the problem
I want to have a little feedback form in one of my views but I can't
get it to work. I put a pdb.set_trace() to debug the views but when I
click submit the view reloads and never gets into the if
request.method == 'POST' and... code section. I'm very confused about
how to approach ajax forms submis
What's the dev server output when the AJAX call is attempted?
Which Django version? I don't see a CSRF token in the form.
Shawn
--
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
is there a template tag to show the user's full name on a template?
--
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
django-users+u
user.get_full_name should work
https://github.com/django/django/blob/master/django/contrib/auth/models.py#L245
--
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 fro
here's what i'm trying
from django.contrib.auth import authenticate, login, logout
#import django user modules
from django.contrib.auth.models import User
def ShowMainMenu (request):
fullname=User.first_name + ' ' + User.last_name
return render_to_response('scanning/menu.html',
{'
Can anybody to help me with demo project of correct settings.py for
django-filebrowser and structure of folders. I tried very much places
of locate FILEBROWSER folders for media and uploads but always get
such error: 'Error finding Upload-Folder (MEDIA_ROOT +
FILEBROWSER_DIRECTORY). Maybe it does n
78 matches
Mail list logo