Re: unbalanced parenthesis

2014-09-22 Thread ngangsia akumbo
I did it bro it was a url prob On Thursday, September 18, 2014 8:08:38 AM UTC+1, James Schneider wrote: > > You likely have a regular expression that is trying to match using groups, > and a '(' or ')' are missing or added as extras without a mate. > > http://lmgtfy.com/?q=Python+unbalanced+paren

Re: unbalanced parenthesis

2014-09-22 Thread ngangsia akumbo
Please don't tell me to use google because i dont post here without google for a solution On Wednesday, September 17, 2014 4:36:40 PM UTC+1, mark wrote: > > There is no way anyone can help you with this limited information. > > 1. Please read - http://www.catb.org/esr/faqs/smart-questions.html >

Re: unbalanced parenthesis

2014-09-22 Thread ngangsia akumbo
Thanks for the tips On Monday, September 22, 2014 8:49:37 AM UTC+1, ngangsia akumbo wrote: > > Please don't tell me to use google because i dont post here without google > for a solution > > On Wednesday, September 17, 2014 4:36:40 PM UTC+1, mark wrote: >> >> There is no way anyone can help you w

Testting field.label_tag

2014-09-22 Thread Salvatore DI DIO
Hello, I woulk like to test field.label_tag in the fieldset.html template For example I want to do: {% if field.label_tag != 'Tags' %} {{ field.label_tag }} {% endif %} But that seems to not work Thanks for your suggestions -- You received this message because you are subscribed to the

Best approach for using one or more tables of the same database in two different projects

2014-09-22 Thread Victor
Context: Linux Ubuntu, Apache2, Django 1.7, PostgreSQL. As a volunteer of a no-profit company, say Company A, devoted to palliative therapies , I successfully set up a Warehouse Management System (WMS) project on one of their servers using django and exclusively its magical admin interfac

Re: unicode problems in admin interface

2014-09-22 Thread Jaap van Wingerde
Op 2014-09-18T13:41:53 UTC schreef Jaap van Wingerde in het bericht , ID: <20140918134153.390fc...@jaap.custard.shrl.nl> het interface>volgende. > I have suddenly unicode problems with de admin interface: > > "DjangoUnicodeDecodeError at /admin/art/photographextra/ > > 'ascii' codec can't deco

Re: Testting field.label_tag

2014-09-22 Thread Daniel Rus Morales
Use the attribute ‘label’ rather than ‘label_tal’. The latter is the HTML element. Do: {% if field.label != 'Tags' %} {{ field.label_tag }} {% endif %} Cheers On 22 Sep 2014, at 10:51, Salvatore DI DIO wrote: > Hello, > > I woulk like to test field.label_tag in the fieldset.html templa

n00b question - using Django for web services

2014-09-22 Thread Roger Rustad
I have a limited progamming background (C++ in school 10+ years ago) and am needing to setup an API framework to take HTTP callbacks from landing pages (e.g. Unbounce). Given my following requirements and conditions, is Django what I want to use and where is the best place to start? - forms

Re: Testting field.label_tag

2014-09-22 Thread mbox
Use the attribute ‘label’ rather than ‘label_tag’. The latter is the HTML element. Do: {% if field.label != 'Tags' %} {{ field.label_tag }} {% endif %} Cheers On Monday, September 22, 2014 10:51:59 AM UTC+2, Salvatore DI DIO wrote: > > Hello, > > I woulk like to test field.label_tag in th

I have configured SysLogHandler for my django app but nothing is going into the log file

2014-09-22 Thread Sumedh Sidhaye
Hi, I have configured SysLogHandler as mentioned in this link . I have put a absolute filename instead of '/dev/log' or '/var/log' But it seems nothing is going into that file Could you help me out! Regards, Sumedh -

Re: n00b question - using Django for web services

2014-09-22 Thread François Schiettecatte
Rog Django is an option, you may also want to look at the Django REST Framework too ( http://www.django-rest-framework.org ). If you want to do something really simple you might want to look at Flask ( http://flask.pocoo.org ), it is another python based web framework, 'lighter' than Django bu

Re: Django 1.6 Nginx with static files outside project folder

2014-09-22 Thread Florian Auer
Hi Yes thats correct, but i checked the static directory in /webapps/sonar3/static and the files for the admin page and the plugin specific files also are present here. But the system tries to load them from /webapps/sonar3/myproject/static. Am Samstag, 20. September 2014 00:55:40 UTC+2 schrieb

Re: How to add custom code to default auth.view

2014-09-22 Thread Collin Anderson
from django.contrib.auth.views import logout urlpatterns = [ url('^/accounts/logout/', logout, {'redirect_field_name': 'my_field_name'}), ] -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving e

Re: Admin doesn't show all entities

2014-09-22 Thread Collin Anderson
On Saturday, September 20, 2014 12:17:52 PM UTC-4, Ben Scherrey wrote: > > Yikes that's scary. How did you diagnose this? I think I may be hitting a > few examples of this now as well. Silent repression of exceptions is about > as evil a thing as one can do in a framework/library. > Yeah, I don'

Re: updating site domain with data migration

2014-09-22 Thread Anil Jangity
Thanks, looks like I need to do a second pass at the documentation. ;-) In my dev environment, I was trying to do a clean/fresh install; including the creation of the super user account. If I don't use syncdb, I should also create the super user account using data migration? If so, it seems like

Re: Open Django template in dialog box (not in window)

2014-09-22 Thread Collin Anderson
> > I've tried using AJAX, like told in the link below but yet unable to do: > > http://stackoverflow.com/questions/19267531/how-to-open-jquery-ui-dialog-with-ajax-request > What happens when you try? -- You received this message because you are subscribed to the Google Groups "Django user

Re: Accessing request object

2014-09-22 Thread Collin Anderson
Can you attach the request to `form.request`? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, s

Re: trying to load a view

2014-09-22 Thread Collin Anderson
url(r'^hello/$', include(polls.views.hello)), should be: url(r'^hello/$', polls.views.hello), -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-use

Re: Slow page load performance with a large number of formsets (over 25)

2014-09-22 Thread Collin Anderson
Yes, if you want speed, using javascript and ajax is probably your best bet. It will probably also reduce merge-conflicts. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: Best approach for using one or more tables of the same database in two different projects

2014-09-22 Thread Collin Anderson
If you are going to use separate tables in the same database, you will likely need separate models in django. You could however share methods and fields between the similar models using "abstract" models. https://docs.djangoproject.com/en/dev/topics/db/models/#abstract-base-classes -- You rece

Re: Django 1.6 Nginx with static files outside project folder

2014-09-22 Thread Collin Anderson
This looks right to me. Did you reload nginx? location /static { alias /webapps/sonar3/static; } Maybe this is messing it up? if (!-f $request_filename) If you turn off gunicorn, do you still get the static files? -- You received this message because you are subscribed to the Google Groups

Re: updating site domain with data migration

2014-09-22 Thread Markus Holtermann
On Mon, Sep 22, 2014 at 08:41:36AM -0700, Anil Jangity wrote: If I don't use syncdb, I should also create the super user account using data migration? If so, it seems like I need to go do User.objects.create_superuser(). There still is the option of running "python manage.py createsuperuser" af

request.META['REMOTE_USER'] with django runserver

2014-09-22 Thread Robbie Edwards
Hi, On my production server, I'm using REMOTE_USER to provide SSO for an internal service. It works great on the production server. However, when running 'runserver' on the development side, this variable is not set so authentic

Error UNIQUE constraint failed with Django 1.7

2014-09-22 Thread cristian jimenez
I got error (Error UNIQUE constraint failed) when tried create an object with *create* function. Many websites post the solution is update sequence of database, but the problem isn't solved. I had this code: TutorUser.objects.create( user=user, birthdate=date_obj,

How to make theme enabled apps using django-pipeline and LESS

2014-09-22 Thread Faraz Masood Khan
I have been developing e-commerce in Django as composite apps and using LESS for all of my custom CSS. I have used django-pipeline to compiled, compressed and version-ed before deployment. Now I am looking for best way to do theming, I tried to put all colors in style.less files, but that doesn

Behavior of the "update" in Django 1.7

2014-09-22 Thread Fabio C. Barrionuevo da Luz
Hello. Some questions. Walking through projects on github i found django-save-the-change[1] Interesting project. But what django-save-the-change[1] proposes to do is still valid for Django 1.7? I think it would be good practice to only touch in the fields in the database in which there really wa

Bug in Django 1.6.6 password_reset when user never logged in

2014-09-22 Thread gcivil
I found what I think is a bug in Django 1.6.6 Test Case 1) Create new user 2) Do not login and try to reset password using password_reset You will see the following error AttributeError at /password_reset/ 'NoneType' object has no attribute 'replace' Request Method: POST Request URL: htt

Re: Testting field.label_tag

2014-09-22 Thread Salvatore DI DIO
Thank you Le lundi 22 septembre 2014 13:35:42 UTC+2, mb...@danir.us a écrit : > > Use the attribute ‘label’ rather than ‘label_tag’. The latter is the HTML > element. > > Do: > > {% if field.label != 'Tags' %} > {{ field.label_tag }} > {% endif %} > > Cheers > > > On Monday, September 22, 201

Re: Testting field.label_tag

2014-09-22 Thread Salvatore DI DIO
Thank Daniel Le lundi 22 septembre 2014 14:05:33 UTC+2, Daniel Rus Morales a écrit : > > Use the attribute ‘label’ rather than ‘label_tal’. The latter is the HTML > element. > > Do: > > {% if field.label != 'Tags' %} > {{ field.label_tag }} > {% endif %} > > Cheers > > On 22 Sep 2014, at 10:

Re: Accessing request object

2014-09-22 Thread Salvatore DI DIO
Excuse me Collin, I don't understang what you are meaning ... Le lundi 22 septembre 2014 17:46:41 UTC+2, Collin Anderson a écrit : > > Can you attach the request to `form.request`? > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: Open Django template in dialog box (not in window)

2014-09-22 Thread Fred Stluka
Kamal, I do this via the jQueryUI "dialog" widget. Works fine with Django or any other back end code. Just make an Ajax call to the URL to get the HTML, instead of passing the URL to window.open(), and pass the HTML to the jQuery dialog widget. See: http://jqueryui.com/dialog/ --Fred ---

Re: Is there anything similar to phpmyadmin

2014-09-22 Thread Fred Stluka
There's some really nice DB admin functionality in PyCharm. It's not open source, or even free, and it's not written in Python, but it's part of an IDE that I use (and many others here?) for developing our Python/Django code. Hope this helps! --Fred --

Re: Is there anything similar to phpmyadmin

2014-09-22 Thread Aaron C. de Bruyn
You might consider setting up your database connection string, then doing a 'python manage.py inspectdb'. This will spit out a bunch of model definitions. Paste them into your models.py, and add them in admin.py, and you have an interface for managing a database. -A On Sat, Sep 20, 2014 at 6:38

Re: Is there anything similar to phpmyadmin

2014-09-22 Thread alTus
I've come to the fact that standalone apps on your client computer are much more handy for db management. All you need is to set up ssh tunnel to your server. Native apps generally work faster and also allow you not to waste time setting up _stuff_ on the server. SQLYog is a very good program fo

Re: Accessing request object

2014-09-22 Thread alTus
Collin said you can attach your `request` object to the form object somewhere in your view. After that you will be able to use in anywhere in methods. Also you can consider adding request parameter explicitly to your __init__ method and then passing it to `restrictQuery`. PS. restrictQuery shou

Re: Open Django template in dialog box (not in window)

2014-09-22 Thread Kamal Kaur
On Mon, Sep 22, 2014 at 9:14 PM, Collin Anderson wrote: > What happens when you try? I'm not getting how to tell AJAX to go to a view and load the data that it returns as the template, (in dialog). It's just not done. Feeling too dumb to use it. And doesn't work when I send a URL like: '/popupadv

Re: unbalanced parenthesis

2014-09-22 Thread Russell Keith-Magee
HI Ngangsia, Mark directed you at Google because your usage of this list is extremely consistent with someone who *hasn't* tried to solve their own problem first. Put yourself in our shoes. We don't know you. We don't know what you know, and what you don't know. What answer would you like us to p

web server question

2014-09-22 Thread Paraskevi vogot
Hello everyone, I am beginner, I installed Python2.7 and Django and now I am in process off installing a database. I am about to install MySQL but I find it a little bit hard to install a web server (Appache) so I would like to ask if it would fine if I used XAMPP. Thank you -- You received

Re: web server question

2014-09-22 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 5:39 AM, Paraskevi vogot wrote: > I find it a little bit hard to install a web server (Appache) s/Appache/Apache -- Kamaljeet Kaur -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and sto

Re: web server question

2014-09-22 Thread Lachlan Musicman
Kamal, That should work fine, although you will still need to install Python if you are on a Windows platform. cheers L. On 23 September 2014 11:22, Kamal Kaur wrote: > On Tue, Sep 23, 2014 at 5:39 AM, Paraskevi vogot wrote: >> I find it a little bit hard to install a web server (Appache) > >

Re: unbalanced parenthesis

2014-09-22 Thread Mark Phillips
Russ, +100 Thanks! Mark aka Matt ;) On Mon, Sep 22, 2014 at 5:02 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > HI Ngangsia, > > Mark directed you at Google because your usage of this list is extremely > consistent with someone who *hasn't* tried to solve their own problem first

Re: unbalanced parenthesis

2014-09-22 Thread Russell Keith-Magee
On Tue, Sep 23, 2014 at 10:08 AM, Mark Phillips wrote: > Russ, > > +100 > > Thanks! > > Mark aka Matt ;) > Oops! My sincere apologies for the misattribution. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscri

Re: Is there anything similar to phpmyadmin

2014-09-22 Thread Yuan-Liang Tang
Thanks, but I'd like to use something open and free ;-) Per your suggestions about native apps, MySQL Workbench, included in Ubuntu's Software Center, seems to be a good solution? Thangs a lot. alTus於 2014年9月23日星期二UTC+8上午7時21分36秒寫道: > > I've come to the fact that standalone apps on your client

Django url pass through

2014-09-22 Thread robert brook
How is a url conf written so that if none of the useful urls are matched it will pass through to some sort of wild card regular expressions so that the view / redirection can be performed gracefully Thanks -- You received this message because you are subscribed to the Google Groups "Django us

Re: web server question

2014-09-22 Thread Kamal Kaur
On Tue, Sep 23, 2014 at 7:04 AM, Lachlan Musicman wrote: > That should work fine, o.O I just pointed out the wrong spellings. > although you will still need to install Python > if you are on a Windows platform. Exactly! -- Kamaljeet Kaur kamalkaur188.wordpress.com -- You received this mess

Re: Accessing request object

2014-09-22 Thread Salvatore DI DIO
I understand now, Thank you very much Altus and Collin 2014-09-23 1:30 GMT+02:00 alTus : > Collin said you can attach your `request` object to the form object > somewhere in your view. After that you will be able to use in anywhere in > methods. > Also you can consider adding request parameter