englishoo speakino list only.
18-10-2011 13:15 użytkownik "mxm982" napisał:
> Ciao ragazzi ho realizzato una piccola applicazione in Django che
> aggiorna delle tabelle di uno schema gia preesistente. Ora ho la
> necessita di puntare al rach della db attraverso appunto il tsname non
> tramite sid
On Thu, Oct 13, 2011 at 4:59 PM, Javier Guerra Giraldez
wrote:
> On Thu, Oct 13, 2011 at 9:52 AM, Maksymus007
> wrote:
> > must works with some other solutions where choice of using SOAP over REST
> > was made years ago.
>
> often because some years ago, REST was
On Thu, Oct 13, 2011 at 3:05 PM, Tom Evans wrote:
> On Thu, Oct 13, 2011 at 1:42 PM, Maksymus007
> wrote:
> > What my and company I work for experience show is that Java should simply
> by
> > used to solve other problems that Django or RoR solves.
> > Developing med
What my and company I work for experience show is that Java should simply by
used to solve other problems that Django or RoR solves.
Developing medium-sized web-app in Django is for us big pain in the neck,
especially when compared to development of other app using
Java + PrimeFaces and all enterpr
and of course you did check django documentation under internationalization
section?:)
Pozdrawiam, Maksymilian Pawlak
22-09-2011 12:30 użytkownik "nadae ivar" napisał:
> hi,
> i have a application in french i wanna use internationalization to
> change language at each request if the broswer in en
Of course Java IS faster by a few factors then Python. I switched recently
to Play development from django and I also noticed different. Moreover Play
uses many mature tools, like JPA/Hibernate, ehcache etc which are called
industrial standards.
One more thing - Play! uses its own build-in http ser
megiteam.pl is 24PLN which is about 8usd a month:)
Pozdrawiam, Maksymilian Pawlak
08-06-2011 08:30 użytkownik "raj" napisał:
> Hey guys,
> Just wondering if you could give me some hosts that are very cheap for
> django hosting? Is hostgator any good? I really don't know what to
> look for in a ho
we use yui for both js and css. but we have it a bit different,i mean we use
django tag for including files and some script that compress and join files
and both share the same naming algorithm.
Pozdrawiam, Maksymilian Pawlak
02-06-2011 21:08 użytkownik "Mike" napisał:
> What is everyone using to
yes,its called microsoft word:) it is possible to save file as html,but the
quality and portability of this code is poor
Pozdrawiam, Maksymilian Pawlak
26-05-2011 17:27 użytkownik "Vladimir" napisał:
> Is there a tool to transform MS WORD file into HTML ? I know there is
> markdown and textile, b
bonjour,le liste est anglais langue seulement.
Pozdrawiam, Maksymilian Pawlak
23-05-2011 13:25 użytkownik "mehdi ben rejeb"
napisał:
> Bonjour
> je suis novice pour django et l'environnement python
> cet environnement de travail me plaie
> je viens de suivre le tuto :http://docs.django-fr.org/int
just create empty models,py file in your app folder. I don't know why,but
thats how Django 'sees' your applications.
Pozdrawiam, Maksymilian Pawlak
09-05-2011 23:58 użytkownik "protonpopsicle"
napisał:
> Is this a bug?
>
> If I run my unittest with './manage.py test myapp' and myapp does not
> co
you get array of arrays.
First array contains rows. Every row is just an array of fields, order is
the same as in your query.
On Sun, Dec 19, 2010 at 9:45 PM, Andy wrote:
> I need to execute some SQL queries involving joins and it seems like
> custom SQL is the way to go. A couple of questions
1 - no
2 - no
3 - no
On Tue, Aug 3, 2010 at 4:57 PM, André Asantos wrote:
> I am totaly new to Python world...
>
> I would like to konw:
>
> 1- py is Python class extension?
> 2-does django have any similar .jsp GUI? or is only use HTML for GUI?
> 3-is netbeans IDE the best IDE?
>
> --
> You rece
On Wed, Jul 28, 2010 at 3:29 PM, Massimiliano Ravelli
wrote:
> On Jul 28, 3:13 pm, knight wrote:
>> What are the minimal changes that I need to make in order to work with
>> 1.2.1?
>
> Did you have a look at
> http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges
> ?
This link in wort
On Sat, Jun 5, 2010 at 10:18 PM, rahul jain wrote:
> Hi Django,
>
> I would like to create an android application which talks to Django.
> If I hit a url on my phone, it hits one of my views (urlconf), that
> view
> processes the request and give the result back to the android app.
>
> Anybody in
On Thu, Dec 24, 2009 at 5:24 PM, hotani wrote:
> I have close to 600 users split by 20 or so offices. We have a
> helpdesk form (using ModelForm) which displays an initial user list
> based on the office, or no users if an office is not selected.
>
> An AJAX function on the front end dynamically c
How to impelement such a functionality? I would like to provide full
field validation but only if other field is filled - for example
checkbox is checked. I start with
class Form:
field = forms.Field(required=False)
but would like to change this to True in some cases at runtime. I know
I can u
On Wed, Dec 16, 2009 at 4:53 PM, Niels wrote:
> We're developing an extranet.
>
> What is the best (and easiest) way to put a complete project behind a
> login?
>
> I don't want to add @login_required to all views
>
>
> Thanks,
>
>
> Niels
custom context processor?
--
You received this mess
On Wed, Dec 16, 2009 at 6:21 AM, Victor Hooi wrote:
> heya,
>
> We have a small project where we need to store a series of exam
> results for students.
>
> Some exams receive a grade out of 100, others are simply a pass/fail,
> while others are given a one-word grade (e.g. pass, fail, credit,
> di
For a few weeks I observe strange django behaviour - from time to time
I get mails about
AttributeError: 'NoneType' object has no attribute 'company'
in line 121, which is:
cursor.execute("SELECT * FROM interface.stats_sms_errors(%d,
'%s'::timestamp with time zone, '%s'::timestamp with time zone
I got my main urls.py file
urlpatterns = patterns('',
(...)
(r'^wakers/$', include('appname.wakers.urls')),
(...)
)
and this works well
then i got wakers.urls.py
urlpatterns = patterns('wakers',
(r'^$', 'views.add', {}, 'wakers-add'),
(r'^b$', 'views.add', {}, 'wakers-add2'),
)
An
> Yeps, I just knew I had already seens something like that
> somewhere !-)
>
> Ok, problem solved then.
yep :)
>
>> Your solution is way cool, but again, its violates DRY -
>> additional code in every view (can be probably ommited by decorators,
>
> Indeed.
>
>> but still, the same decorator for
On Thu, Nov 12, 2009 at 1:31 PM, bruno desthuilliers
wrote:
> On 12 nov, 12:16, Maksymus007 wrote:
>> I have some problem with templates and separating templates blocks.
>>
>> There is a list of messages. Some properties are common, some are
>> application specific.
I have some problem with templates and separating templates blocks.
There is a list of messages. Some properties are common, some are
application specific.
Properties are just html columns :)
I got following templates
main.html -> basic "frame", which consists of common html, headers, scripts etc
if you use custom user model, you could select user with related sets
and filter out record having at least one FK empty.
I think you could try
a) run own, custom query
b) use extra() function on queryset - but again, it should be used
agains User model
c) use database view
--~--~-~--~--
widgets = (forms.Select(), forms.TextInput())
you make empty widget, just specify available choices there
On Wed, Nov 4, 2009 at 11:19 AM, psvent wrote:
>
> Hi!
>
> I am struggling to get MultiValueField and MultiWidget to work.
>
> I have a CharField and ChoiceField in the MultiValueField cla
On Wed, Nov 4, 2009 at 11:13 AM, Mark L. wrote:
>
>
>
> On Nov 4, 11:20 am, Maksymus007 wrote:
>> I'm trying to use modelformset for my model using specified form.
>> Everything works well unless i try to save forms - ale changes are
>> saved, but for 22 form
I'm trying to use modelformset for my model using specified form.
Everything works well unless i try to save forms - ale changes are
saved, but for 22 forms django generates 91 queries (some of them are
for auth, other parts etc - but this number should not exceed 30
counting one query for each fo
Its somehow possible to disable deletion for certain forms (models) in formset?
--~--~-~--~~~---~--~~
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
I have a model formset to edit / add / delete objects from db. I got
one extra form for adding new objects. How can I distinguish if given
form exists in database ? I mean I need to discard invalid form if it
does not represent real object.
--~--~-~--~~~---~--~~
Yo
On Sat, Oct 3, 2009 at 4:01 PM, Andrew wrote:
>
> Anyway, I thound that's not possible, so I will need to create
> specific custom tag for this.
>
> On Oct 3, 2:07 pm, Andrew wrote:
>> Hello,
>>
>> is there any way to use custom template tag inside {if} or ifequal
>> tag?
>>
>> I have custom tag
On Fri, Oct 2, 2009 at 1:46 PM, gustavo wrote:
>
> Hello fellows,
>
> I have been developing a little blog app as described in
> http://www.aprendendodjango.com, what means Learning Django. It this
> very interesting.
>
> But I've got problems when I tryed to deploy. It seems everything is
> ok,
On Fri, Oct 2, 2009 at 12:58 PM, Daniel Roseman wrote:
>
> On Oct 2, 11:45 am, Maksymus007 wrote:
>> I used query in form
>>
>> a = X.objects.select_related('gate__keywords_set').filter(field=value)
>>
>> and then tried to get elements from
I used query in form
a = X.objects.select_related('gate__keywords_set').filter(field=value)
and then tried to get elements from related
a[x].gate.keywords_set - there is a RelatedManager object which forces
me to call all() method to get elements. And problem is that this
causes additional queri
I'm looking for simple way of managing menu - so my question is - how
i can get currently used URL?
--~--~-~--~~~---~--~~
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
On Wed, Sep 23, 2009 at 7:05 PM, Chris Withers wrote:
>
> Hi All,
>
> I have this view function:
>
> def index(request,model,pk=None):
>
> return list_detail.object_list(
> request,
> queryset=model.objects.all(),
> paginate_by=10,
> template_name='index.html',
I've got some models which has fields. Those fields can contain Null.
There are also some FK, which are not obligatory - they can be null as
well.
When it comes to display list of objects, in places of Null i get
'None' string - no matter if use i18n or not. For fields with FK i get
'(None)'
This,
On Wed, Sep 16, 2009 at 10:53 PM, neri...@gmail.com wrote:
>
> Is there any benefit to using {% url %} other than retrieving data
> from the same view? I was looking for a better way to make a
> breadcrumb menu than hard wiring the urls into every page and came
> across the {% url %} tag and this
Is there any way to make Django ORM NOT assign every possible column a
value? I just want it to insert values i defined or have set
default=Something, but don't touch other s columns leaving database
default?
Currently django fills ununsed fields with NULL, but i just want it ommit them.
--~--~-
I need to have 4 versions of exactly the same model - but named
differently and using different table/views (some complex filtering is
required and database permission stuff)
I simply did:
class Event(models.Model):
a = models.IntegerField()
class Meta:
db_table = 'event'
and th
On Tue, Sep 15, 2009 at 1:28 PM, Gonzalo Delgado
wrote:
> El Tue, 15 Sep 2009 12:49:02 +0200
> Maksymus007 escribió:
>
>> {% if gates.forms %}
>>
>> {% for form in gates.forms %}
>>
>> {% if forloop.first %}
>>
>> {% else
Whats wrong with such template (entire one):? Django returns
TemplateSyntaxError at /scratchcards/
Invalid block tag: 'else'
pointing at tag marked by >>
{% if gates.forms %}
{% for form in gates.forms %}
{% if forloop.first %}
{% else %}
{% endif %}
{% en
On Sat, Sep 12, 2009 at 4:12 PM, adelaide_mike
wrote:
>
> Django 1.0.2 In the following template I intend to make rows that
> have an empty second column bold. Hence trying 2 in row. My syntax
> is wrong due to inexperience with Python, and possibly my methodology
> also.
>
> {% extends "base.
On Fri, Sep 11, 2009 at 11:03 PM, Jim Myers wrote:
>
> I have a requirement to serve static files only to users authenticated
> through Django secure login.
> That means I can't use apache basic/digest authentication for those
> files.
>
> So far in my searches of the web and Django docs, I've fo
On Tue, Sep 8, 2009 at 5:55 PM, Masklinn wrote:
>
> On 8 Sep 2009, at 14:00 , Maksymus007 wrote:
> I tried following code
>>
>> from django.conf import settings
>>
>> ...
>>
>>
>> a = setting.MY_OWN_VARIABLE=2
> You probably shouldn't se
I tried following code
from django.conf import settings
...
a = setting.MY_OWN_VARIABLE=2
I get error
'function' object has no attribute 'MY_OWN_VARIABLE'
when I
print settings
it says its function object - instead of LazySettings object. I tried even
from django.conf import settings as
save(force_insert=True) ?
On Mon, Sep 7, 2009 at 11:11 AM, lzantal wrote:
>
> Hi,
>
> I need to save_as in the model of my app So I can save existing
> records as new ones.
> I know there is an option in modeladmin but I don't have an admin
> interface for this app.
> Tryed calling force_insert o
On Mon, Sep 7, 2009 at 11:08 AM, kk wrote:
>
> I want to implement a php e-shop module called "Ecshop" which is
> written in PHP with my django website.
> Is it possible?
sure it is. You can configure apache to handle some files like PHP
scripts, and there you can do whatever you want - connect t
On Thu, Sep 3, 2009 at 11:36 PM, Margie
Roginski wrote:
>
> I've created a django app and I soon am going to have users that are
> in multiple timezones. My app is a task management system and it is
> important for users to see dates and times with respect to their own
> time zone. IE, if here i
On Thu, Sep 3, 2009 at 12:13 PM, phoebebright wrote:
>
> Russ,
>
> Phew - you set me on the right track there. I actually had an app
> called events at the same level as the main app
>
> /django
> /appwithproblem
> /web
> /events
> /events
> /web
>
>
> There are various error
On Mon, Aug 31, 2009 at 10:49 PM, eka wrote:
>
> Hi all.
>
> I have this question on when one is preffered over another. I mean
> overriding save or using signals like post_save or pre_save.
>
> cheers.
>
The scale. signals are used for every model, save() per one
--~--~-~--~~---
On Sat, Aug 29, 2009 at 10:33 AM, Maksymus007 wrote:
> On Sat, Aug 29, 2009 at 5:40 AM, Wombatpm wrote:
>>
>> For the record. SOAPLIB 0.8.1 has a bug in generating the WSDL file
>> for Arrays.
>>
>>>
>>> -
>>>
>>> >>
On Sat, Aug 29, 2009 at 5:40 AM, Wombatpm wrote:
>
> For the record. SOAPLIB 0.8.1 has a bug in generating the WSDL file
> for Arrays.
>
>>
>> -
>>
>> > name="string"/>
>>
>>
>
> the type declaration should be type="xs:string"
>
>
> The unicode issue is being raised by lxml inside of soaplib.
On Thu, Aug 27, 2009 at 5:00 PM, Thomas Guettler wrote:
>
>
>
> Maksymus007 schrieb:
>> On Thu, Aug 27, 2009 at 1:22 PM, David Zhou wrote:
>>> On Thu, Aug 27, 2009 at 7:09 AM, Maksymus007 wrote:
>>>> I've got two different form on the same page, unde
On Thu, Aug 27, 2009 at 1:41 PM, David Zhou wrote:
>
> On Thu, Aug 27, 2009 at 7:33 AM, Maksymus007 wrote:
>>
>> On Thu, Aug 27, 2009 at 1:22 PM, David Zhou wrote:
>>> Post the part of your view that handles your forms.
>>
>> Nothing special
>>
>
On Thu, Aug 27, 2009 at 1:22 PM, David Zhou wrote:
>
> On Thu, Aug 27, 2009 at 7:09 AM, Maksymus007 wrote:
>>
>> I've got two different form on the same page, under the same URL.
>> When I send one of them, the second one gets validated too.
>> I set prefixes bu
I've got two different form on the same page, under the same URL.
When I send one of them, the second one gets validated too.
I set prefixes but no change.
Is there any way to distinguish between two forms, choosing one that
have been submited?
--~--~-~--~~~---~--~---
On Tue, Aug 4, 2009 at 10:58 PM, scuzz wrote:
>
> Hi,
>
> I'm trying to receive a file encoded in a json string and store it in
> an ImageField. I was hoping to use the standard Django deserialisation
> like:
>
> serializers.deserialize("json", "...snip..., \"myImageField\":
> \"base64encodedimage
On Thu, Aug 13, 2009 at 4:21 AM, humble wrote:
>
> Hi,
>
> I am writing a web application that involves session management with
> the corporate backend module. I wrote my own authentication backend
> plugin to satisfy the corporate requirement, not the default
> authentication backend. I use file
import myproject.settings;
if settings.DATABASE_NAME = x:
On Sun, Aug 16, 2009 at 10:30 AM,
adelaide_mike wrote:
>
> In my reporting function I need to have:
>
> If DATABASE_NAME = x:
> #do this
> Else:
> #do the other
>
> How can I obtain that name, which is established in settings.py?
>
jango-admin in the bin folder:
> c;\Python26\Lib\site-packages\bin\django-admin
>
> So why doesn't it open in cmd?
>
> On Aug 15, 10:22 am, Maksymus007 wrote:
>> On Sat, Aug 15, 2009 at 7:18 PM, Thiago511 wrote:
>>
>> > python is in %PATH%
>> > Dja
On Sat, Aug 15, 2009 at 7:18 PM, Thiago511 wrote:
>
> python is in %PATH%
> Django is not though.
> How do I add it to %PATH% ?
>
>
if you installed django by python setup.py install than it is in
site-packages directory of Python instalation and having Python in
%PATH% everything should work - p
On Sat, Aug 15, 2009 at 7:08 PM, Thiago511 wrote:
>
> hey mark, I am following your tutorial, and I am stuck in:
>
> step 3
> Right list contains Open? If yes, select it and Edit, if not Add. Set
> accoring to screenshot below, remeber about python.exe path - may be
> different.
>
> What screensho
On Sat, Aug 15, 2009 at 6:34 PM, Thiago511 wrote:
>
> Well Sam, I am making some progress. at least I got a different error
> message(I am actually excited lol)
> here:
>
> python: can't open file 'django-admin.py': [Errno 2] No such file or
> directory
>
> On Aug 15, 9:25 am, Sam Lai wrote:
>> F
On Thu, Aug 6, 2009 at 12:38 AM, Wojciech Gryc wrote:
>
> Thanks for your replies!
>
> The problem with storing the user ID for each table and then filtering
> by the ID is that once the data set grows very large, this will become
> extremely slow (as far as I understand).
>
> I expected to have a
On Wed, Aug 5, 2009 at 11:16 PM, Berco Beute wrote:
>
>> You forgot to set the prefix here, so the form that the user is
>> submitting their data from doesn't have the fields named correctly. You
>> need to set it up exactly the same way at this point as you did in the
>> POST path, with the excep
>
> Hi everyone,
>
> I'm sure this has come up in the past, but I sincerely can't find it
> in any of the Django tutorials, documentation, or websites. I
> apologize in advance if I missed something!
>
> I'm trying to develop a website where different users store their own
> sets of contacts / art
On Mon, Aug 3, 2009 at 11:27 AM, Mirat Bayrak wrote:
> Hi i have an account system that you have to validate your email after you
> created an account. My validation url is lik :
> www.foo.com/account/confirm/username/keyyy
>
> But there is a problem, sometimes username contains non html s
On Tue, Jul 14, 2009 at 10:00 AM, Bela Hausmann wrote:
>
> Hi everybody!
>
> I use django a lot, and I'm really glad about the admin interface. I
> always hated to code admin interfaces myself, never again :)
>
> But now I have the task of making a new corporate website with a PHP
> framework, and
Its possible to use dynamic (database based maybe) routing, instead of
static one?
--~--~-~--~~~---~--~~
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.
I recently switched to Django from PHP with Doctrine ORM - there was a
possibility to make model 'act as' for example NestedSet - which
automagically added required fields and methods to operate on Tree -
adding, moving,deleting nodes etc. Is this somehow possible in Django?
--~--~-~--~--
71 matches
Mail list logo