Re: EmailField: unable to make it mandatory?

2016-01-04 Thread gerard
Le 04/01/2016 08:55, James Schneider a écrit : On Jan 3, 2016 9:02 PM, "gerard" mailto:gh224...@gmail.com>> wrote: > > Hello all and happy new year, > > with Django 1.7, i have this model: > class Subscription(models.Model): > email = models.EmailField(max_length=75) > created_by

Re: EmailField: unable to make it mandatory?

2016-01-04 Thread James Schneider
> > i looked into database directly: > foo=> \d eventsmgmt_subscription > Table « > public.eventsmgmt_subscription » >Colonne | Type | Modificateurs > > -+--+--

Re: Guidelines For A Newbie

2016-01-04 Thread Jai Goyal
thanks a lot for replying. it matters to me alot. actually i know html/css and basics of web. now i have done django tutorial01 and created a basic, very basic website that contained a form. now my PROBLEM is i dont know js , bootstrap and and concepts of backend in django. which is why i am havi

Re: how to restrict responses to a single server/domain ?

2016-01-04 Thread Abraham Varricatt
My head is still spinning over the different concerns to be juggled over this issue. But I just wanted to come back and say that I really appreciate the responses. Especially from James - Thanks a lot! :) Things on my mind - * network controls = I can understand how attractive (and simple) this

A problem with django logging

2016-01-04 Thread 朴诚
Hi, I encountered a django logging problem which can not be solved for several hours. My django logging setting is: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'formatters': { 'standard': { 'format': '[%(asctime)s - %(name)s - %(levelname)s - %(

Error: NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]

2016-01-04 Thread Robbie Sharma
I have python and django loaded on my RaspberryPi that is wired to an LED array. The web app 'iofcontrol' in my Django project is supposed to activate an animation sequence of a set of LEDs. - iofppysite is the main project file - iofppysite/iofcontrol is the LED control web app! The

possible to setup old project (different dependencies) as a library ?

2016-01-04 Thread Abraham Varricatt
A team I'm working with has its hands full with an old Django 1.4 project (python 2.7). We're thinking of refactoring the code-base and migrating things over to the latest Django 1.9. Thing is, we can't abruptly stop working on the old 1.4 code base. So, an idea was floated - to start a new Dja

Re: possible to setup old project (different dependencies) as a library ?

2016-01-04 Thread Jani Tiainen
Hi, You can use your older project "as a library". But it won't magically enable using outdated libraries. IOW, even if you use 1.4 based project as a library you still need to upgrade parts that are not 1.9 compatible, that also means that all your libraries must be upgraded to support Djang

Re: possible to setup old project (different dependencies) as a library ?

2016-01-04 Thread Abraham Varricatt
I was afraid that someone might say that. I'm going to stubbornly keep searching for another answer for a little longer. But thanks Jani, for confirming a suspicion. -Abraham V. On Monday, 4 January 2016 17:59:57 UTC+5:30, Jani Tiainen wrote: > > Hi, > > You can use your older project "as a li

Re: Guidelines For A Newbie

2016-01-04 Thread Razvan Stefanescu
Dear Jai, I would focus now on Django tutorial and learning Python. You can build a simple web app without JavaScript knowledge, and learning a lot of things at the same time will be quite confusing. Regards, Razvan Stefanescu On Monday, January 4, 2016 at 12:30:11 PM UTC+2, Jai Goyal wrote: >

Re: Guidelines For A Newbie

2016-01-04 Thread Andreas Kuhne
Hi Jay, What I would recommend is that you go throught the django tutorials and just "do" the js parts regardless of what they say - you will then get a bit of understanding for the django MVC concept and also how the django backend works and what goes where in django. The other issues you are ha

Re: possible to setup old project (different dependencies) as a library ?

2016-01-04 Thread Andreas Kuhne
As a person who has done this on 2 separate occasions, I also think that the best way would be to start a rewrite and upgrade ASAP. However, having said that. I think you COULD be able to run the old code in a django 1.9 environment, by checking for different methods. For example in django 1.4 a m

Re: possible to setup old project (different dependencies) as a library ?

2016-01-04 Thread André Jarussi
Hello Abraham ... I recently had to upgrade my django from version 1.4 to 1.8 .. I'm not sure the size of your project, but for me, it wasn't as hard as it looks. I couldn't stop new features for a while to migrate to 1.8 so I was doing by pieces ... 1.4 to 1.5 .. deploy .. 1.5 to 1.6 .. deplo

Re: hello. get_queryset question

2016-01-04 Thread Víctor Suárez
Thanks! On Sunday, January 3, 2016 at 9:28:47 PM UTC-5, Vijay Khemlani wrote: > > Try with > > self.request.GET['name'] > > On Sun, Jan 3, 2016 at 11:22 PM, Víctor Suárez > wrote: > >> Hello all, >> as it's my first post, if any django developer around, nice work! I >> appreciate the package, I'

Re: hello. get_queryset question

2016-01-04 Thread Víctor Suárez
Thank you very much man I can like this framework like a lot I end up with: class MyModel(ListView): ... q = self.request.GET.get('q',default='') country = self.request.GET.get('country',default='') owner = self.request.GET.get('owner',default='') self.queryset

Re: Error: NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]

2016-01-04 Thread Víctor Suárez
I don't see a namespace on url.py https://docs.djangoproject.com/en/1.9/intro/tutorial03/#namespacing-url-names On Monday, January 4, 2016 at 7:16:32 AM UTC-5, Robbie Sharma wrote: > > I have python and django loaded on my RaspberryPi that is wired to an LED > array. The web app 'iofcontrol' in

Debugging Django with Debug set to False

2016-01-04 Thread Web Architect
Hi, Is there a way to debug Django when DEBUG is set to False in settings.py (for example on production)? The reason for asking the above is if we face any issue with DEBUG set to False and if we need to debug. We are new to Django and we are building an ecommerce platform based on Django.

There's any framework for "bussiness app (ERP)" built in Django?

2016-01-04 Thread Fellipe Henrique
Hello, I'm making some research but I don't find any framework for "bussiness app", like ERP, using django (or flask) Anybody know any framework with these concept? Thanks! P.S.: for example, about "bussiness app" framework [1] [1] https://frappe.io/ T.·.F.·.A.·. S+F *Fellipe Henrique P.

Re: Debugging Django with Debug set to False

2016-01-04 Thread Bill Freeman
You don't say what your front end is. There are ways to use pdb with apache, look for advise on the modwsgi site. But if you are in production, rather than just bringing up the instance that will be production, you may not want to interrupt. Be sure that you can't reproduce the problem in the de

Re: There's any framework for "bussiness app (ERP)" built in Django?

2016-01-04 Thread Luis Zárate
I know https://github.com/django-erp/django-erp, but I guest it's not for production yet (see develop branch). 2016-01-04 12:26 GMT-06:00 Fellipe Henrique : > Hello, > > I'm making some research but I don't find any framework for "bussiness > app", like ERP, using django (or flask) > > Anybody

Re: Running Python3 code and placing results in a view

2016-01-04 Thread asleasesource01
First thank you for the reply. Tonight I will re-apply the code tonight and get back with you. On Monday, January 4, 2016 at 2:47:24 AM UTC-5, Daniel Roseman wrote: > > On Sunday, 3 January 2016 23:37:50 UTC, Andrew Stringfield wrote: >> >> Hello all, >> >> I am interested in running the cod

Re: There's any framework for "bussiness app (ERP)" built in Django?

2016-01-04 Thread Hildeberto Mendonça
You can use Odoo for ERP if you want to keep using Python. For everything else, use Django. On Mon, Jan 4, 2016 at 8:02 PM, Luis Zárate wrote: > I know https://github.com/django-erp/django-erp, but I guest it's not for > production yet (see develop branch). > > > > 2016-01-04 12:26 GMT-06:00 Fel

Re: There's any framework for "bussiness app (ERP)" built in Django?

2016-01-04 Thread Gustavo Andres Angulo
Also you can try Tryton. Best. Gustavo. On Mon, Jan 4, 2016 at 3:30 PM, Hildeberto Mendonça wrote: > You can use Odoo for ERP if you want to keep using Python. For everything > else, use Django. > > On Mon, Jan 4, 2016 at 8:02 PM, Luis Zárate wrote: > >> I know https://github.com/django-erp/d

Re: There's any framework for "bussiness app (ERP)" built in Django?

2016-01-04 Thread Fellipe Henrique
Thanks for all replies.. But, I'm looking for a framework, not a finished ERP like Odoo... Need to be web, so, tryton is out (as I know, they not have web framework)... Django is a good framework, but I`m looking for one framework, built with Django, but, give to me Backend and Frontend... using

Re: Error: NoReverseMatch at / Reverse for 'submit' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried:[u'$submit'/]

2016-01-04 Thread Luis Zárate
El lunes, 4 de enero de 2016, Víctor Suárez urlpatterns = [ url(r'^', views.index, name='index'), url(r'^submit/(?P\d+)', views.submit, name='submit'), ] Because you have def submit(request, laser_id): escribió: > I don't see a namespace on url.py > > > https://docs.djangoproject.com/e

Testing the interaction of multiple sites

2016-01-04 Thread Michal Petrucha
Hi folks, I'd like to write some tests for a simple redirect-based SSO solution, in which there's one instance of an app responsible for authentication, and all other instances redirect new sessionless users to it, and then expect a redirect callback. Kind of like a simplified version of OAuth in

Re: Testing the interaction of multiple sites

2016-01-04 Thread Nikolas Stevenson-Molnar
HTTPretty may help with this. It will let you mock a response from the second server: https://github.com/gabrielfalcao/httpretty _Nik On 1/4/2016 2:49:34 PM, Michal Petrucha wrote: Hi folks, I'd like to write some tests for a simple redirect-based SSO solution, in which there's one instance of

Re: Testing the interaction of multiple sites

2016-01-04 Thread Nikolas Stevenson-Molnar
HTTPretty may help with this. It will let you mock a response from the second server: https://github.com/gabrielfalcao/httpretty _Nik On Monday, January 4, 2016 at 2:50:05 PM UTC-8, Michal Petrucha wrote: > > Hi folks, > > I'd like to write some tests for a simple redirect-based SSO solution,

Re: Testing the interaction of multiple sites

2016-01-04 Thread Michal Petrucha
On Mon, Jan 04, 2016 at 03:22:10PM -0800, Nikolas Stevenson-Molnar wrote: > HTTPretty may help with this. It will let you mock a response from the > second server: https://github.com/gabrielfalcao/httpretty > > _Nik Hi Nikolas, Thanks for your suggestion, unfortunately, I don't see how it helps

Re: Testing the interaction of multiple sites

2016-01-04 Thread Nikolas Stevenson-Molnar
On Monday, January 4, 2016 at 3:39:22 PM UTC-8, Michal Petrucha wrote: > > Hi Nikolas, > > Thanks for your suggestion, unfortunately, I don't see how it helps in > my case. > > What I'm after is some kind of integration test: when I try to load a > page form the relying instance, verify that it

ImportError: No module named security

2016-01-04 Thread Gary Roach
I've been trying different things with django and different tutorials. I was using Ninja as my IDE but had to give it up because of lack of support. I just switched to Eclipse with the PyDev plugin. (No I cant get Pycharm). The IDE is complicated but seems to do everything I wish it to do if I

Re: ImportError: No module named security

2016-01-04 Thread knbk
Seems like you have SecurityMiddleware in your middleware settings, which wasn't added until 1.8. If you started your project on 1.8+. your default settings file would include the new middleware and cause this error on 1.7. On Tuesday, January 5, 2016 at 2:56:51 AM UTC+1, Gary Roach wrote: > >

Re: ImportError: No module named security(SOLVED)

2016-01-04 Thread Gary Roach
Dead On knbk. I commented out the security line and the problem when poof. Thank you. Gary R. On 01/04/2016 06:29 PM, knbk wrote: Seems like you have SecurityMiddleware in your middleware settings, which wasn't added until 1.8. If you started your project on 1.8+. your default settings file w

Drop down dependent on two other form fields

2016-01-04 Thread Arindam sarkar
Hello, In my project I have a from in which there is three drop down. The 3rd drop down is depended on the selected values of the above two drop downs . How can I go for the implementation of it . Please show me a way. -- Regards, Arindam Contact no. 08732822385 -- You received this message b

Re: Drop down dependent on two other form fields

2016-01-04 Thread Andreas Kuhne
Hi Arindam, I didn't find any really good solution, however, googling for "django dropdown dynamic", should point you in the right direction. Hope that helps. Regards, Andréas 2016-01-05 7:07 GMT+01:00 Arindam sarkar : > Hello, > In my project I have a from in which there is three drop down.