Hi Doug
Perhaps [0] on stackoverflow helps you solving the problem (--noreload
option).
As I remember I had the same issue within Aptana.
-V, before using PyCharm I was also developing with a simple editor
(vi).
Aptana wasn't a good choice, because the support for Django isn't
built-in.
PyCharm d
Op 15/07/2011 9:33, Szabo, Patrick (LNG-VIE) schreef:
I'm sorry maybe this is a dumb question but what do you mean when you say
" Inside static-folder I made a link
to ../../lib/python2.7/site-packages/django/contrib/admin/static/admin
for the admin-media files."
?!
. . . . . . . . . . . . .
Maybe I'm still not getting it but I think what you want to set is
admin_media_url instead of admin_media_prefix.
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailto:patrick.sz...@lexisnexis.at
Tel.: 00431 534521573
Fax
Thanks Tim,
I kinda guessed that would be the case. Thanks for the advice.
G
On Jul 15, 3:12 pm, Tim Shaffer wrote:
> Yeah, it doesn't look like 1.1 allowed for ftp protocol:
>
> https://github.com/django/django/blob/1.1.X/django/forms/fields.py#L545
>
> Best bet might be to create your ow
hi there,
does someone know how i can delete a record from my form, i'm using SQLite3
?
thank you
--
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,
hi,
i used this code: {{ My_Model_Name.Attribute1 }} in my html page.
when i open this page with browser, mentioned HEADER isn't visible, but rest
of things(buttons, texts, ...) is visible,
can anybody help me plz?
--
You received this message because you are subscribed to the Google Groups
"D
Do you mean actually deleting an entry in the db
https://docs.djangoproject.com/en/dev/topics/db/queries/#topics-db-queri
es-delete
or removing (not showing) it from the form that is shown in html:
https://docs.djangoproject.com/en/dev/topics/forms/modelforms/#using-a-s
ubset-of-field
Take a look at the sourcecode of the html.
Maybe it's there but has a weird style or if it's not there at all you
might want to show us what's actually in "My_Model_Name.Attribute1"
Von: django-users@googlegroups.com
[mailto:django-users@googlegroups.com] Im Auftrag von bahare hoseini
Gesendet
On Jul 17, 10:36 pm, Lycan wrote:
> I am building a Django User profile management portal. In one of the
> sections of the website i need pull data from an external database(Its
> managed by someone else, i have access to it).
>
> How can i achieve this and also can someone please point me to a
Op 18/07/2011 9:42, Szabo, Patrick (LNG-VIE) schreef:
Maybe I'm still not getting it but I think what you want to set is
admin_media_url instead of admin_media_prefix.
. . . . . . . . . . . . . . . . . . . . . . . . . .
Patrick Szabo
XSLT Developer
LexisNexis
Marxergasse 25, 1030 Wien
mailt
On Fri, Jul 15, 2011 at 3:21 AM, Python_Junkie
wrote:
> I have installed django-mssql and still seem to be stuck.
>
> What are the correct attributes that need to be set in the settings.py
> file?
>
> I am getting an error
>
> This is how I have configured my settings.py file
> ***
I believe I understand the general definitions of internationalization
and localization, e.g. as defined on
http://en.wikipedia.org/wiki/Internationalization_and_localization.
Internationalization is somewhat like building/designing a piece of
software for being used with different locales. And lo
With the rise in popularity of tagging Django links using Pinboard.in,
it would be nice if the links on the feeds page actually worked. The
titles come across fine, but the url's usually just point to the
pinboard.in homepage. I just highlight the title and Google it to find
the page, not a lot of
If you look up those terms in the Django docs instead of Wikipedia I think
that will erase your confusion.
--
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 th
> Well, i would recommend that you use a simple editor(like vim in linux) or
> Programmer's Notepad(in windows) for development in django/python.
> It is much easier to develop and also helps you keep your development
> environment 'lightweight'.
>
> An IDE is required only for languages like Java,
On Mon, Jul 18, 2011 at 4:01 AM, Fatrix wrote:
>
> -V, before using PyCharm I was also developing with a simple editor
> (vi).
> Aptana wasn't a good choice, because the support for Django isn't
> built-in.
> PyCharm doesn't face you with these kind of problems, because PyCharm
> is very well
> p
Personally, I absolutely hate Eclipse and anything associated with it.
An IDE really comes down to personal preference, which is why there are so
many of them.
I'd like to throw Komodo in the mix. I moved from NetBeans to Komodo about 2
months ago, and haven't looked back since. Although Komodo c
Thanks Chang.Jian,
Goth
test_url = reverse('test.views.index', args=['slug'])
and
test_url = reverse('test.views.index', kwargs={'some_slug': 'slug'})
work as expected...
reverse('test:index', args=['slug']) would be the desired syntax, but the
other will work fine as a work around. Anyon
Both*
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/9r8bIyO8WyUJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from
Hi,
I want to write a python script that works with django models without
runing the server. My OS ist Ubuntu 10.10.
My skipt looks as follows:
import sys
sys.path.append('/home/myname/python/django_projects/')
sys.path.append('/home/myname/python/')
import settings
from django_projects.codierun
On 18 July 2011 13:34, Alexander Crössmann
wrote:
> Hi,
>
> I want to write a python script that works with django models without
> runing the server. My OS ist Ubuntu 10.10.
>
>
I'd suggest using Django management commands:
https://docs.djangoproject.com/en/1.3//howto/custom-management-commands/
While this doesn't contribute an answer to your question, I must say
that name "class-based generic views" is a bit misleading . . .
implying that these class-based views are for doing things you want to
do that follow a strictly set pattern out of the box (i.e, listviews,
detailviews, create views
On 18 July 2011 02:04, galgal wrote:
> def upload_path_handler(instance, filename):
>
> return filename
>
> class SpectacleGallery(models.Model):
>
> image = models.ImageField(upload_to=upload_path_handler)
>
> def save(self, *args, **kwargs):
>
> Image.open(self.image)
>
> super(SpectacleGall
Hi Malcom,
I am not sure the management commands are what I want, but the setting
of the DJANGO_SETTINGS_MODULE environment variable helped. I had
experimented with these settings already, but wasn't successful until now.
So, thanks for the help!
Alex
Am 18.07.2011 15:17, schrieb Malcolm Box
Not sure if this is your problem but there are some issues with some
PIL installations and JPG files that require some potential
configuration/install-time magic, so make sure you test on PNG's or
GIF's first and make sure its working with those. If it ends up being
JPG-specific issue, and google
I wanted to register an app called "news" in the admin site and i got
this error:
NameError at /admin/
name 'news' is not defined
Request Method: GET
Request URL:http://127.0.0.1:8000/admin/
Django Version: 1.3
Exception Type: NameError
Exception Value:
name 'news' is not defined
Exception Loc
On Jul 18, 3:33 pm, Alexander Crössmann
wrote:
> Hi Malcom,
>
> I am not sure the management commands are what I want
Strange enough, it seems that everyone starts by saying this and ends
up writing custom management commands ;)
--
You received this message because you are subscribed to the Goo
On Mon, Jul 18, 2011 at 10:33 AM, bruno desthuilliers
wrote:
> On Jul 18, 3:33 pm, Alexander Crössmann
> wrote:
>> Hi Malcom,
>>
>> I am not sure the management commands are what I want
>
> Strange enough, it seems that everyone starts by saying this and ends
> up writing custom management comman
Hi,
I have created a ModelField called RealIPAddressField.
It stores the IP address in integer form, meaning the lookups on large
tables are much faster:
http://djangosnippets.org/snippets/2493/
@django-developers - Do you think there is any possibility of this getting
included into the core?
On Mon, Jul 18, 2011 at 9:56 AM, Cal Leeming [Simplicity Media Ltd]
wrote:
> It stores the IP address in integer form, meaning the lookups on large
> tables are much faster:
are they?hashtables shouldn't be too sensitive to key size, as
long as the string size stays bounded... like on IP addr
Sorry, I should have been a little more specific.
I meant faster lookups in terms of database index, such as MySQL with
InnoDB.
Cal
On Mon, Jul 18, 2011 at 4:13 PM, Javier Guerra Giraldez
wrote:
> On Mon, Jul 18, 2011 at 9:56 AM, Cal Leeming [Simplicity Media Ltd]
> wrote:
> > It stores the IP
Or maybe you were talking about hash tables in MySQL.
Either way, you're right that this would probably need some benchmarks
before being approved for the core.
@django-developers, if I was to provide some benchmarks, would this possibly
be considered for the core?
Cal
On Mon, Jul 18, 2011 at 4
On Mon, Jul 18, 2011 at 10:13 AM, Javier Guerra Giraldez
wrote:
> On Mon, Jul 18, 2011 at 9:56 AM, Cal Leeming [Simplicity Media Ltd]
> wrote:
>> It stores the IP address in integer form, meaning the lookups on large
>> tables are much faster:
>
> are they? hashtables shouldn't be too sensitiv
I like the idea, but I don't like the approach, it should be a
subclass of PositiveIntegerField, as it is an unsigned int on DB
level. Also, I agree with Łukasz that it should support both IPv6 and
IPv4.
--
Best wishes,
Dmitry Gladkov, mailto:dmitry.glad...@gmail.com
+380 91 303-37-46
On Mon,
On 18 Jul 18:28, Dmitry Gladkov wrote:
> I like the idea, but I don't like the approach, it should be a
> subclass of PositiveIntegerField, as it is an unsigned int on DB
> level. Also, I agree with Łukasz that it should support both IPv6 and
> IPv4.
IPAddressField appears to be v4 only for backwa
Dear Django Users,
I want to add users to a particular group based on the domain of their
email address. I set up some code in models.py to do this and it seems
to work. But, when I go to test the code things don't work out so
smoothly. I think in the test environment the objects I try to create
i
what is the correct syntax for this:
self.ErrorMessages = _('Problem with data of Waybill') '%s: %s \n' %
( the_waybill, str( errorObj.code ) )
--
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@goo
What traceback do you get?
--
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...@googlegroups.com.
For more opt
Something like this?
_str = _('Problem with data of Waybill')
_str2 = "%s: %s \n" % ( the_waybill, str( errorObj.code ) )
self.ErrorMessages = "%s %s" % ( _str, _str2)
(i split into two parts to make it easier on the eyes)
Cal
On Mon, Jul 18, 2011 at 5:59 PM, NISA BALAKRISHNAN <
snisa.balakrish
As I still haven't solved this, any suggestions would be appreciated.
On Jun 26, 10:16 pm, Tony wrote:
> Alex,
> I did it your way and although it does return the intersected sets
> correctly, it is not exactly what I want because I need those sets to
> be returned with their respective model A o
self.ErrorMessages = _('Problem with data of Waybill') ' %s: %s \n' %
( the_waybill, str( errorObj.code ) )
there is an error in this statement. i do not know if this is a valid
python assignment statement
becoz what i want to assign to self.errormessages is Problem with data
of waybill (-value i
Well I just pasted you valid python syntax, so why not try that? Or am I
missing something? :X
On Mon, Jul 18, 2011 at 6:21 PM, NISA BALAKRISHNAN <
snisa.balakrish...@gmail.com> wrote:
>
> self.ErrorMessages = _('Problem with data of Waybill') ' %s: %s \n' %
> ( the_waybill, str( errorObj.code )
There is an error because you are concatenating the function _() and the
string '%s: %s \n'
You also don't need the space before \n
and don't add unnecessary spaces: (the_waybill, str(errorObj.code)) is the
right way to write the last part of the code[1].
[1] http://www.python.org/dev/peps/pep-
On Mon, Jul 18, 2011 at 6:30 PM, Andre Terra wrote:
> There is an error because you are concatenating the function _() and the
> string '%s: %s \n'
>
> You also don't need the space before \n
>
> and don't add unnecessary spaces: (the_waybill, str(errorObj.code)) is the
> right way to write the l
Or maybe you want to authenticate using a remote resource?
Authentication using REMOTE_USER
https://docs.djangoproject.com/en/dev/howto/auth-remote-user/
Cheers,
AT
On Mon, Jul 18, 2011 at 6:08 AM, Uros Trebec wrote:
>
>
> On Jul 17, 10:36 pm, Lycan wrote:
> > I am building a Django User pro
I didn't aim to start a discussion about which IDE is better. But
every one has its own pros and cos.
While working with Aptana I had to recreate several times a broken
workspace, a really annoying work.
That was my main reason to switch from the free Eclipse-World to the
(not expensive) PyCharm
w
I just upgraded my Debian server, which brought the python-django
package up to version 1.2, and now any attempt to post to the database
tables results in a CSRF failure. I'm using the admin pages to do
just about everything, so it not clear how to apply the instructions
in the Django CSRF docs [1
Thank you both!
On Jul 18, 1:39 pm, Andre Terra wrote:
> Or maybe you want to authenticate using a remote resource?
>
> Authentication using
> REMOTE_USERhttps://docs.djangoproject.com/en/dev/howto/auth-remote-user/
>
> Cheers,
> AT
>
>
>
>
>
>
>
> On Mon, Jul 18, 2011 at 6:08 AM, Uros Trebec w
feel free to disable the csrf middleware and all problems should go away...
>reply to message:
>date: 18.07.2011 13:45:56
>from: "bkline"
>to: "Django users"
>subject: [] Django site broken after Debian
>upgrade
>
>I just upgraded my Debian server, which brought the python-django
>package up to
Hi,
I have an ubuntu server, django is fully installed and working,
lighttpd is installed and working(works with standard html page), but
I am not sure how to get them talking to each other?
It is my first time putting a django site onto a live server so any
help is appreciated. I'm used to a php
Hello, django-users.
I'm in need of some serious help on deciding how to design my next project.
Below is my attempt to describe the use case:
*USE CASE*
I'm writing an accounting app that will be generating unique monthly reports
of the revenue results for a list of Accounts (model) in the compa
Django has a policy of warning about deprecations for two versions and
finally dropping support on the third dot release.
Installing the python-django package is not the canonical way of using
django, let alone running production servers.
Perhaps you have a replica of the old admin templates on y
Op maandag 18 juli 2011 20:29:03 UTC+1 schreef Phil het volgende:
>
> Hi,
>
> I have an ubuntu server, django is fully installed and working,
> lighttpd is installed and working(works with standard html page), but
> I am not sure how to get them talking to each other?
>
> It is my first time pu
I need to render a nested queryset in a template, a classic father/son
structure like
publisher>dvds>renters,
code
---
class publisher(models.Model):
publisherid = models.IntegerField(primary_key=True)
publishe
Thanks for reply. Yeah I seen that, I did run "./manage.py runfcgi
method=threaded host=my ip address port=80" in my mysite directory but
am still getting a "not found" page.
On Jul 18, 10:41 pm, Daniel Roseman wrote:
> Op maandag 18 juli 2011 20:29:03 UTC+1 schreef Phil het volgende:
>
>
>
>
>
Op maandag 18 juli 2011 20:29:17 UTC+1 schreef kooliah het volgende:
>
> I need to render a nested queryset in a template, a classic father/son
> structure like
> publisher>dvds>renters,
>
>
>
in python code i can use this code:
>
> code
>
> -
On Mon, Jul 18, 2011 at 4:55 PM, Phil wrote:
> I did run "./manage.py runfcgi
> method=threaded host=my ip address port=80"
don't use port 80 for FastCGI. chances are that it's already used
--
Javier
--
You received this message because you are subscribed to the Google Groups
"Django users"
On Mon, Jul 18, 2011 at 10:54 PM, Andre Terra wrote:
> Hello, django-users.
>
> I'm in need of some serious help on deciding how to design my next project.
> Below is my attempt to describe the use case:
>
> *USE CASE*
> I'm writing an accounting app that will be generating unique monthly
> repor
Marc,
First of all, thank you for your insights. I'll try to clarify things as
best as I can.
On Mon, Jul 18, 2011 at 7:21 PM, Marc Aymerich wrote:
>
>
> On Mon, Jul 18, 2011 at 10:54 PM, Andre Terra wrote:
>
>> Hello, django-users.
>>
>> I'm in need of some serious help on deciding how to desi
Thank you
On 07/18/2011 11:57 PM, Daniel Roseman wrote:
Op maandag 18 juli 2011 20:29:17 UTC+1 schreef kooliah het volgende:
I need to render a nested queryset in a template, a classic
father/son
structure like
publisher>dvds>renters,
in python code i can use this cod
I'm not sure if this is a bug (though it probably is) and wanted to
review here before submitting a report. Consider the following
handler:
def test(req):
if req.method == "POST":
HttpResponse("the request was a POST")
else:
HttpResponse("the request was not a POST")
Thi
On 19/07/2011 9:13am, Andre Terra wrote:
The problem is I'm supposed to have millions of entries; all with the
same date, thousands for the same Account, hundreds with the same
description and perhaps dozens with the same value. I think I'm going
with force-overwrite for the month, at least f
On Jul 18, 5:25 pm, Andre Terra wrote:
"Installing the python-django package is not the canonical way of
using
django, let alone running production servers."
Really? It would be better if I went back to the days where we all
built everything from the source? Do all Django users running on
Are you missing to 'return' HttpResponse?
-V
--
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...@googlegroup
On Tue, Jul 19, 2011 at 9:48 AM, bkline wrote:
> On Jul 18, 5:25 pm, Andre Terra wrote:
>
> Really? It would be better if I went back to the days where we all
> built everything from the source? Do all Django users running on
> Linux (which I assume is the platform for the majority of
> install
Aha! I knew i was crazy :) Thanks!
On Mon, Jul 18, 2011 at 7:49 PM, Venkatraman S wrote:
> Are you missing to 'return' HttpResponse?
>
> -V
>
> --
> 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
There seems to be a raging and unresolved discussion about how to
address the issue of stripping whitespace from form fields in future
versions of Django over on the Developers group:
http://groups.google.com/group/django-developers/browse_thread/thread/90352cc0da78390b
.
In the present, what is t
komodo is absolutely brilliant! couple months ago I spent two hours
learning how to write komodo macros in python and how to use their
shortcuts in writig commands; I recommend you try komodo and check
their bundled macros and commands in the toolbox panel (on the right)
click properties to edit co
>
> On Tue, Jul 19, 2011 at 9:48 AM, bkline wrote:
> > On Jul 18, 5:25 pm, Andre Terra wrote:
> >
> > Really? It would be better if I went back to the days where we all
> > built everything from the source? Do all Django users running on
> > Linux (which I assume is the platform for the majorit
hi,
I met the same problem when updated diango from version 1.2 to version 1.3.
And it comes back to normal after back to version 1.2.
May be your trouble came from the same reason
rgs,
he
On Tue, Jul 19, 2011 at 1:13 PM, Andre Terra wrote:
> On Tue, Jul 19, 2011 at 9:48 AM, bkline wrote:
>>
i am new to django
@import "{{STATIC_URL}}/css/demo_page.css";
the slash after {{STATIC_URL}} is needed? what is the actual usage ?
--
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.
Hi,
Depends on how you configured STATIC_URL in settings. If / is there in the
STATIC_URL, then no need to add it.
Add it with STATIC_URLS, that is the standard practice.
regards,
Anoop
atm
___
Life is short, Live it hard.
On 19 July 2011 11:31, NISA BALAKRISHNAN wrote:
> i am new to django
Hello all,
I was on this list a few months ago, but was unable to get a
django-friendly web host. I am now helping with a site on Bluehost,
which does support django, and I am hoping to be given permission by
the guy in charge to use django instead of php for our project.
I have been going through
73 matches
Mail list logo