Re: Dynamic Models

2017-01-09 Thread Jani Tiainen
Hi, You're probably after EAV pattern (or anti-pattern depending who you ask). Implementing that in Django is relatively trivial, though with any kind of dynamics you'll going to loose most of the ORM goodies. This kind of leads to question that is Django ORM really needed for you at all? Ho

Re: Trying to print data containing a space in html

2017-01-09 Thread Asad Jibran Ahmed
Hi Anjali, Where inside your project are you storing the nbsp.py file? Regards, Asad Jibran Ahmed http://blog.asadjb.com On Tue, Jan 10, 2017 at 11:09 AM, wrote: > I have a data attached with multiple spaces, I want to print the data on > html page along with spaces but in html spaces are get

Trying to print data containing a space in html

2017-01-09 Thread anjalimk68
I have a data attached with multiple spaces, I want to print the data on html page along with spaces but in html spaces are getting stripped off. I found a solution of creating a package as nbsp and use that in template. I tried that but it is throwing error as " 'nbsp' is not a registered tag l

Re: Migration failing?

2017-01-09 Thread Joakim Hove
An update: I think this was the clue: If I try other manage commands like `manage.py runserver` or `manage.py test` I get the same error. There was some code going through all Organisation objects during import - and that fails. Got to refactor a bit. On Monday, January 9, 2017 at 11:32:2

Migration failing?

2017-01-09 Thread Joakim Hove
Hello; I have a long running Django project; it started on version ~1.0. I have upgraded regularly and I am now on 1.10. I have been using migrations with Django since the became standard (1.8??) and generally been very happy with them. However today I am facing a problem with a migration which

Form Inheritance. Order is Reversed.

2017-01-09 Thread Justin J
I have a form which is sublassing 3 forms, and has no new fields. class D(A, B, C): pass form class B is subclassing 2 forms. class B(B1, B2): pass In the template I am looping through the form. {% for d in forms.myforms %} {% for field in d.form.visible_fields %} {% en

list? queryet? joining together

2017-01-09 Thread MikeKJ
Got a quantity of a type of tool to have hours booked, sometimes a tool is booked for all available hours and sometimes for only a few hours and sometimes more than 1 tool is booked to the job. The problem I am having is adding a booking into usable hours, I think I need to determine if the ne

Re: Session key is empty after login on Django Channels development server

2017-01-09 Thread Utku Gültopu
It's something about Django. I don't know if it is expected behavior or not, hence I created a ticket . Regards On Monday, January 9, 2017 at 12:25:03 AM UTC+3, Andrew Godwin wrote: > > Hi, > > Have you tried removing the "channels" package from INSTA

Re: Decrease amount of identical "Email reports"

2017-01-09 Thread Sam Walters
Hi Presumably you have had a look at logging docs and its not good enough? https://docs.djangoproject.com/en/1.10/topics/logging/ With these sort of project requirements the way i have solved this in the past is to: *Work out who needs to receive certain messages. Draw a grid with all useful messa

Re: Decrease amount of identical "Email reports"

2017-01-09 Thread roboslone
Hi! I don't know how to help you with ADMINS notifications, but you can use Sentry to collect logs and errors. I believe you could set up notifications there as you like. > On 9 Jan 2017, at 11:53, Nacharov Mikhail wrote: > > Hi folks and Happy New Year! > > I have a high load production site

Decrease amount of identical "Email reports"

2017-01-09 Thread Nacharov Mikhail
Hi folks and Happy New Year! I have a high load production site. If I make a mistake (some users getting 500 error) all ADMINS will be receiving error emails until bug won't be fixed. This causes email server load and it's quite annoying reading thouse idetical emails sometimes. It's also possi

how to access remotely from apache to django?

2017-01-09 Thread 김명윤
I am using CMS website based on apache tomcat. I want to migrate and renewal this to apache + django. The infrastructure consists of two apache(loadbalancing), two tomcat(loadbalancing), and three MySQL servers (MMM). ... worker.addelivery01.reference=worker.template worker.addelivery01.host=10