Re: PUNTARE CON DJANGO SU BILANCIATORE ORACLE ATTRAVERSO IL TSNAME

2011-10-18 Thread Maksymus007
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

Re: Second coming of Java?

2011-10-13 Thread Maksymus007
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

Re: Second coming of Java?

2011-10-13 Thread Maksymus007
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

Re: Second coming of Java?

2011-10-13 Thread Maksymus007
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

Re: Internationalization

2011-09-22 Thread Maksymus007
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

Re: django/python performance vs play/java

2011-07-05 Thread Maksymus007
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

Re: VERY cheap django hosting?

2011-06-07 Thread Maksymus007
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

Re: Best CSS/JS compressor?

2011-06-02 Thread Maksymus007
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

Re: markup

2011-05-26 Thread Maksymus007
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

Re: Mise en place de la base de données

2011-05-23 Thread Maksymus007
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

Re: Can't Test Apps Without Models?

2011-05-09 Thread Maksymus007
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

Re: Custom SQL questions

2010-12-19 Thread Maksymus007
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

Re: help

2010-08-03 Thread Maksymus007
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

Re: moving to django 1.2.1

2010-07-28 Thread Maksymus007
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

Re: django and android application

2010-06-05 Thread Maksymus007
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

Re: override django's rear-end validation for dynamic model field (AJAX)

2009-12-24 Thread Maksymus007
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

Form field required only if other fields are filled

2009-12-23 Thread Maksymus007
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

Re: Extranet : Complete project behind login?

2009-12-16 Thread Maksymus007
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

Re: FK to an Abstract class? Alternative?

2009-12-15 Thread Maksymus007
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

Strange django behaviour

2009-12-09 Thread Maksymus007
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

Strange reverse behaviour

2009-11-19 Thread Maksymus007
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

Re: Template conceptual help

2009-11-12 Thread Maksymus007
> 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

Re: Template conceptual help

2009-11-12 Thread Maksymus007
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.

Template conceptual help

2009-11-12 Thread Maksymus007
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

Re: querysets: if x in y

2009-11-08 Thread Maksymus007
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 --~--~-~--~--

Re: MultiValueField and MultiWidget

2009-11-04 Thread Maksymus007
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

Re: Strange SQL Query

2009-11-04 Thread Maksymus007
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

Strange SQL Query

2009-11-04 Thread Maksymus007
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

Modelformset - disable deletion

2009-10-09 Thread Maksymus007
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

Modelformsets - check if instance in database

2009-10-09 Thread Maksymus007
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

Re: Is it possible to use custom template tag inside another tag?

2009-10-03 Thread Maksymus007
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

Re: Help debug strange errors

2009-10-02 Thread Maksymus007
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,

Re: select_related() and Additional keywords

2009-10-02 Thread Maksymus007
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

select_related() and Additional keywords

2009-10-02 Thread Maksymus007
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

Menu managements, current URL

2009-09-29 Thread Maksymus007
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

Re: equivalent of getattr in a django template

2009-09-23 Thread Maksymus007
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',

Admin Null values display

2009-09-17 Thread Maksymus007
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,

Re: benefits of {% url %} for breadcrumbs?

2009-09-16 Thread Maksymus007
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

django ommit non-set field on insert

2009-09-16 Thread Maksymus007
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. --~--~-

Inheritance from real model (or models with the same fields but different table)

2009-09-16 Thread Maksymus007
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

Re: Syntax error

2009-09-15 Thread Maksymus007
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

Syntax error

2009-09-15 Thread Maksymus007
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

Re: Make a bold row in a table

2009-09-12 Thread Maksymus007
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.

Re: How to server static media secured by Django authentication

2009-09-11 Thread Maksymus007
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

Re: Django settings function object?

2009-09-08 Thread Maksymus007
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

Django settings function object?

2009-09-08 Thread Maksymus007
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

Re: Save model as new record in db

2009-09-07 Thread Maksymus007
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

Re: Is it possible to integrate php with django?

2009-09-07 Thread Maksymus007
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

Re: how to deploy an app that gets used by people in multiple time zones

2009-09-04 Thread Maksymus007
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

Re: No Module named ... problem

2009-09-03 Thread Maksymus007
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

Re: signals (post_save, pre_save) vs save()

2009-08-31 Thread Maksymus007
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 --~--~-~--~~---

Re: SOAPLIB issue with django upgrade

2009-08-29 Thread Maksymus007
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. >> >>> >>> - >>> >>> >>

Re: SOAPLIB issue with django upgrade

2009-08-29 Thread Maksymus007
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.

Re: How to check which form was submitted?

2009-08-27 Thread Maksymus007
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

Re: How to check which form was submitted?

2009-08-27 Thread Maksymus007
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 >> >

Re: How to check which form was submitted?

2009-08-27 Thread Maksymus007
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

How to check which form was submitted?

2009-08-27 Thread Maksymus007
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? --~--~-~--~~~---~--~---

Re: JSON Serialization with ImageField

2009-08-24 Thread Maksymus007
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

Re: new session ID is created for every request from IE 7

2009-08-19 Thread Maksymus007
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

Re: How to get DATABASE_NAME

2009-08-16 Thread Maksymus007
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? >

Re: Django in Vista

2009-08-15 Thread Maksymus007
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

Re: Django in Vista

2009-08-15 Thread Maksymus007
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

Re: Django in Vista

2009-08-15 Thread Maksymus007
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

Re: Django in Vista

2009-08-15 Thread Maksymus007
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

Re: Select Table or Database based on User

2009-08-05 Thread Maksymus007
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

Re: Multiple instances of the same form on one page: how to get the right POST data?

2009-08-05 Thread Maksymus007
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

Re: Select Table or Database based on User

2009-08-05 Thread Maksymus007
> > 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

Re: Non html safe chars on urls,

2009-08-03 Thread Maksymus007
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

Re: Django admin for PHP?

2009-07-14 Thread Maksymus007
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

Dynamic routing

2009-07-13 Thread Maksymus007
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.

Predefined models like tree,sortable_set

2009-07-13 Thread Maksymus007
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? --~--~-~--~--