Updating kwargs['data'] in get_form_kwargs (sometimes) raises AttributeError

2016-08-06 Thread Petar Aleksic
Hi, Basically in two different UpdateViews I update the form kwargs dinamically (on the same way): def get_form_kwargs(self): kwargs = super(MyView, self).get_form_kwargs() print("KWARGS", kwargs) kwargs['data'].update({ "something": "somevalue" })

Daphne, twisted pip error when installing django channels

2016-07-24 Thread Petar Pilipovic
Hello, is there a chance that someone helps me with this question Thank you. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Django OperationalError

2015-03-15 Thread Petar Pilipovic
Solved it, the problem was in 3th party apps, I did as luis recommended, tanks for the help. all the best, Petar On Fri, Mar 13, 2015 at 4:45 AM, luis zarate <luisz...@gmail.com> wrote: > If you deleted your db and created again and the issue persist then maybe > the problem is

Re: Django OperationalError

2015-03-12 Thread Petar Pilipovic
Heh, lol, Ok tax Collin I will do that. I was thinking that i need to delete mine migration from the terminal, but I will try that, tnx 10.03.2015. 18.01, "Collin Anderson" <cmawebs...@gmail.com> је написао/ла: > Hi Petar, > > I'm actually not sure why you want to call s

Re: Django OperationalError

2015-03-11 Thread Petar Pilipovic
zba>, and then I have made mine superuser, this is the Operational Error <http://ur1.ca/jvzbq>. Question: Why is he reporting this template rendering error on line 40? <http://ur1.ca/jvzbz> Tank you Best Petar On Tue, Mar 10, 2015 at 6:49 PM, Petar Pilipovic <iamr...@gmail.com> wr

Re: Django OperationalError

2015-03-06 Thread Petar Pilipovic
ration to apply at the end, and the error is still there. Is there something else I can do, or how can I approach this differently. Best Petar On Fri, Mar 6, 2015 at 11:21 PM, Collin Anderson <cmawebs...@gmail.com> wrote: > Hi, > > The problem is that django_session doesn't e

Re: Django OperationalError

2015-03-02 Thread Petar Pilipovic
xit__ 94. six.reraise(dj_exc_type, dj_exc_value, traceback) File "/home/copser/.virtualenvs/django17/local/lib/python2.7/site-packages/django/db/backends/utils.py" in execute 65. return self.cursor.execute(sql, params) File "/home/copser/.virtualenvs/dja

Re: Django OperationalError

2015-02-27 Thread Petar Pilipovic
assuming not based on the question), drop and recreate the DB to clear out any previously failed migration attempts and apply your migrations again using the command I specified. Capture the entire output of the command and paste it back to this list so that we can help more. > > -James > > On

Django OperationalError

2015-02-27 Thread Petar Pilipovic
Hello, I have manage to merge mine application to pythonanywhere.com. After I have done all the needed installing, uploading files, collecting static, making migrations to mine django application, I have experienced an OperationError saying: no such table: django_session You can find the

Problem whit Stripe payment setup (stripeToken)

2015-02-20 Thread Petar Pilipovic
Hello there I am making an e_commerc django app, and I am trying to setup stripe as a payment. I have done all the tutorial setup from stripe.com site and when I use stripe test credit card I only get : I do not see mine stripeToken. I have tried to google it on the web and they have told me

Re: ImportError

2015-02-18 Thread Petar Pilipovic
Ok, I will work on it as soon as posible, tnx for your help. On Wednesday, February 18, 2015, aRkadeFR <cont...@arkade.info> wrote: > > On 02/18/2015 07:17 AM, Petar Pilipovic wrote: > > aRkadeFR I have one other question regarding urls.py. I got this error when I am trying

Re: ImportError

2015-02-17 Thread Petar Pilipovic
nd I can go from home page to contact, about, but I can not go reverse. Can you explain to me where is the error? Tank you. On Wednesday, 18 February 2015 06:02:54 UTC+1, Petar Pilipovic wrote: > > Hello aRkadeFR. > I have solved mine problem, I was working whit Python 2.X here, and like

Re: ImportError

2015-02-17 Thread Petar Pilipovic
it, I did that and now mine form is working. Tank you. Best. Petar...;-) On Tuesday, 17 February 2015 14:57:46 UTC+1, aRkadeFR wrote: > > Two different problems here. > > For your import of contactForm, please try the relative import like: > from contact.forms import contactF

Re: ImportError

2015-02-17 Thread Petar Pilipovic
. On Tuesday, February 17, 2015, Petar Pilipovic <iamr...@gmail.com> wrote: > Hello, I can not do it wright now I am not at home. > As for mine forms.py, it is in mine contact app. I have two apps in mine root project, one off them is contact. > I will send you more info as soon as posi

Re: ImportError

2015-02-17 Thread Petar Pilipovic
gt; Hello :) > > Can you dump us the layout of your files? > Where is your forms.py? > > Thanks > > On 02/17/2015 06:36 AM, Petar Pilipovic wrote: > > Hello all, I am trying to build and e_commerc django app, but I have encounter an confusing error. > Mine Error is:

ImportError

2015-02-16 Thread Petar Pilipovic
Hello all, I am trying to build and e_commerc django app, but I have encounter an confusing error. Mine Error is: Environment: Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 1.7.4 Python Version: 2.7.6 Installed Applications: ('django.contrib.admin',

Question for Django Core Team?

2015-01-18 Thread Petar Pilipovic
Hello there this is maybea of topic but I wont to ask Django Core Team, did they now someone who is practising Django in Belgrade-Serbia, or Zagreb-Croatia, I now there is a strong Slovenia team there, but I was wondering about this area around Bosnia where I live in. I am asking because I was

TemplateSyntaxError

2014-10-08 Thread Petar Pilipovic
Hi all, I am currently under going a blog tutorial from http://matthewdaly.co.uk/blog/2014/01/02/django-blog-tutorial-the-next-generation-part-2/, and I am stuck whit makrdown, I am aware that Django not supporting it any more, but to keep things short I am geting this error.

Re: Django Project Management App

2009-09-11 Thread Petar Radosevic
out it. But you can see it here: http://bitbucket.org/breadandpepper/django-brookie/ Maybe we could learn from your application because we just build this one in a 2 day sprint. Petar --~--~-~--~~~---~--~~ You received this message because you are subscri

Re: psycopg2 name tz error

2009-05-21 Thread Petar Radosevic
There are some solutions posted here, maybe it would help you. http://lethain.com/entry/2009/feb/13/when-psycopg2-can-t-import-tz/ -- With kind regards, Petar Radosevic W: wunki.org PGP Fingerprint: CCDD 7545 4907 D40D C0AC 3AC2 FDDC 2E15 AC44 2A15 PGP Publickey : http://wunki.org/pgp

How to simulate recursive inlines in admin?

2008-09-22 Thread Petar Marić
many things from simple to complex - and the otherwise excellent documentation doesn't give much help. Thanks, -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *jabber: [EMAIL PROTECTED] *web: http://www.petarmaric.com

DjangoCon video

2008-09-11 Thread Petar Marić
Hi everybody, Unfortunately I was unable to participate on DjangoCon because of my Master thesis. Will there be a video of some/all the talks? Regards, -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *jabber: [EMAIL PROTECTED] *web: http

Re: How to deal with "IndentationError"

2008-05-19 Thread Petar
Indentation means your Python code isn't formatted properly. I recommend you to read this: http://docs.python.org/ref/indentation.html On 19 mei, 14:29, coco <[EMAIL PROTECTED]> wrote: > Hi list, > > IndentationError > unindent does not match any outer indentation level (views.py, line > 681)

Re: ModelForms check if value has changed.

2008-04-08 Thread Petar
Found out why I got this error. I forgot to return a value for the validated field. Because this field was prohibited of being NULL, I got an error. I achieved what I wanted with the following code: if self.initial['email'] != self.cleaned_data['email']: try: user =

Re: ModelForms check if value has changed.

2008-04-08 Thread Petar
> Within the ModelForm class just refer to self.initial['field_name']. Yeah, that's the one I needed! I got a strange error now though. When I try to check if the values have changed with: if self.initial['email'] != self.cleaned_data['email']: I get an exception: null value in column "email"

Re: ModelForms check if value has changed.

2008-04-08 Thread Petar
class? On 7 apr, 16:06, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Apr 7, 2008 at 9:37 AM, Petar <[EMAIL PROTECTED]> wrote: > > > Hi Michael, > > > your suggestion doesn't work for my situation. It isn't important if > > the value has been

Re: ModelForms check if value has changed.

2008-04-07 Thread Petar
stance.pk, which returns > true if there an instance (with an already established primary key) or false > if there isn't already an instance. > > Hope that helps, > > Michael > > On Sun, Apr 6, 2008 at 5:44 PM, Petar <[EMAIL PROTECTED]> wrote: > > > De

ModelForms check if value has changed.

2008-04-06 Thread Petar
Dear someone, I have a ModelForm for my User (standard django) model. I want to check if the email is unique so I created a clean_email method which works fine. The only problem is that I only want to check the email address when it's changed. Is their a way to get the 'initial' value of the

Re: Commonly used variables.

2008-01-15 Thread Petar
On 15 jan, 23:14, Tim Chase <[EMAIL PROTECTED]> wrote: > > The thing is, in my sidebar I want to display all the categories. This > > sidebar is the same for every view. How do I create the variables > > needed for this recurring sidebar? So that in every view I can > > generate a list of all

[beginner] Commonly used variables.

2008-01-15 Thread Petar
can generate a list of all categories in the database? Thanks in advance, Petar --~--~-~--~~~---~--~~ 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@google

Admin stylesheet used when defined stylesheet not found?

2007-12-19 Thread Petar
Dear more experienced django users, I have setup my media directories in settings.py and everything works correctly. The thing is that I noticed when I deliberatly link to a non-existent stysleheet in my template my website is still styled with (the admin?) stylesheet. Is it normal that Django

Re: auto_now_add bug with MySQL

2006-05-29 Thread Petar Marić
auto_now_add has been fixed in [3002] Hurray for Luke ;) -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com/ --~--~-~--~~~---~--~~ You received this message because you

Re: auto_now_add bug with MySQL

2006-05-06 Thread Petar Marić
Fernando, It looks it's my own fault I failed to mention I was adding a new object via Djangos admin interface. That means it's Djangos fault, not mine ;) -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com

auto_now_add bug with MySQL

2006-05-05 Thread Petar Marić
\connections.py in defaulterrorhandler, line 33 The saved value of submited_on for the corresponding Paper is '-00-00' which is horribly wrong ;) I'm using MySQL 4.1.12a-nt and freshly baked django svn copy -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype

Re: list_filter not working properly?

2006-05-05 Thread Petar Marić
Hi Malcolm, If you wish I could give you Trac access to my code - just e-mail me. Regards, PS: I too am using the latest svn code (rev. 2847 at this moment) -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com

Re: list_filter not working properly?

2006-05-05 Thread Petar Marić
Anyone? -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

list_filter not working properly?

2006-05-04 Thread Petar Marić
at's wrong with mine/djangos code? -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &qu

[M-R] __repr__ or __str__?

2006-04-29 Thread Petar Marić
Looking through some recent changes I noticed that some M-R code uses __repr__ and some new checkins use __str__ Is there anything we need to know? -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com

Re: Trac error on code.djangoproject.com

2006-04-20 Thread Petar Marić
Medic! :D -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

Re: Changing filenames on an upload...

2006-03-13 Thread Petar Marić
Hi Tony, You should look for rename_by_field() in http://djangoutils.python-hosting.com/wiki/Utils -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com/ --~--~-~--~~~---~--~~ You

Has anybody been able to set up a django powered site on textdrive?

2005-11-06 Thread Petar Marić
Any experiences? -- Petar Marić *e-mail: [EMAIL PROTECTED] *mobile: +381 (64) 6122467 *icq: 224720322 *skype: petar_maric *web: http://www.petarmaric.com/

Re: HTMLField

2005-08-29 Thread Petar Maric
I personaly recommend XStandard (http://xstandard.com/), AFAIK it is *the best* WYSIWYG online XHTML editor on the market. They have a piad version and a free version - which rocks as well, only it lacks web services support and a few more sexy features. PS: Don't hate me because it's ActiveX