Re: How to use try..except, but when DEBUG is True, show the error?

2017-08-12 Thread Jani Tiainen
You can reraise exception simply by calling "raise" without params. 12.8.2017 17.54 "Fellipe Henrique" kirjoitti: > Hello, > > i have these code, for example: > > try: >x = parse_date('') > except TypeError: > return False > > ​ > > It's ok for me code like

Re: Define middleware per app?

2017-08-03 Thread Jani Tiainen
Well of course you can just have two set of settings (derive common stuff). So you don't need fully separated projects. If you don't want to. 3.8.2017 11.27 "Robert Stepanek" <robert.stepa...@gmail.com> kirjoitti: > Hi, > > On Wednesday, August 2, 2017 at 8:31:14 PM

Re: Turn off migrations completely in Django 1.7

2017-08-03 Thread Jani Tiainen
gid/django-users/a93ba892-599a-4677-9895-cb88ce36b01d%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscrib

Re: Define middleware per app?

2017-08-02 Thread Jani Tiainen
Hi, What is the problem that your’e trying to resolve with middlewares and why you think that you can’t use defaults as is? > On 2 Aug 2017, at 14.59, Robert Stepanek wrote: > > I am new to Django and my project consists of two apps: a typical blog-style > web

Re: Django tutorial part 4: 'utf8' codec can't decode byte 0xa0 in position 22431

2017-08-01 Thread Jani Tiainen
s really helpful. Instead of using word I > edited the html files with Notepad. Now it's working :) > > Am Dienstag, 1. August 2017 23:01:49 UTC+10 schrieb Jani Tiainen: >> >> Hi. >> >> You need to make sure that file is really encoded as utf8 and contains >> va

Re: Django tutorial part 4: 'utf8' codec can't decode byte 0xa0 in position 22431

2017-08-01 Thread Jani Tiainen
n the web visit https://groups.google.com/d/msgid/django-users/4360a617-289d-4e4c-8f60-b7dda65e1fda%40googlegroups.com <https://groups.google.com/d/msgid/django-users/4360a617-289d-4e4c-8f60-b7dda65e1fda%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://gro

Re: Run Django tasks with another programming language

2017-07-29 Thread Jani Tiainen
Furthermore, your findings would be helpful for others as well. You’ve found something that is slow (or just hogs resources) would allow others to resolve similar issue(s) much more easy. > On 29 Jul 2017, at 20.10, Jani Tiainen <rede...@gmail.com> wrote: > > Hi. >

Re: Run Django tasks with another programming language

2017-07-29 Thread Jani Tiainen
e requests using another programming language On Friday, July 28, 2017 at 8:34:53 PM UTC+3, Jani Tiainen wrote: > Hi. > > I greatly suspect that your problem isn't the Python itself but what you > do in your workers. > > Also what analysis made you to conclusion that using gola

Re: Run Django tasks with another programming language

2017-07-28 Thread Jani Tiainen
Hi. I greatly suspect that your problem isn't the Python itself but what you do in your workers. Also what analysis made you to conclusion that using golang or c# would improve situation? In other words have you really measured and identified the slow part? 28.7.2017 19.21 "M Mihai"

Re: The best way to use AMP of google with Django

2017-07-24 Thread Jani Tiainen
Hi I really don't know what AMP is but Django templates can be used to output any text you want to. Whout extra work. If you need content negotiation that is also relatively simple to do. 24.7.2017 20.55 "carlos" kirjoitti: > Hi, i have blogs with Django i need use AMP

Re: Downloading error in django-nonrel file

2017-07-21 Thread Jani Tiainen
Hi. Django nonrel was attempt to use orm with non relational databases. It works only partially and development has stalled. (Last commit two years ago). You can use non relational databases just fine - you can't use orm for that. 21.7.2017 15.39 kirjoitti: > Hello

Re: Use one correspondig database user for each application user

2017-07-21 Thread Jani Tiainen
Hi, I think connection pooling is out of Django scope. Django though reuses db connection. In some early versions Django opened and closed connection per request. 21.7.2017 20.55 "Fred Stluka" kirjoitti: > Answer: Connection pooling > > Sharing a single DB user for

Re: How to get extra data in clean_data?

2017-07-18 Thread Jani Tiainen
o-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ab8a7050-37c8-4547-9b86-5bd16821ede9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to t

Re: Create Mobile App from Django Template

2017-07-17 Thread Jani Tiainen
Hi, There are numerous ways to do that. You could create mobile version of your site or do called responsive design. That way site would be accessible with virtually any device. If you want to create native app you can write for example rest api to provide data for your app. 17.7.2017 21.54

Re: How to Contribute to the Django?

2017-07-12 Thread Jani Tiainen
//groups.google.com/d/optout. -- Jani Tiainen -- 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

Re: The best database for django

2017-07-10 Thread Jani Tiainen
Hi, Like Rich suggested start with Postgres. It's very powerful and has first class support in Django. 10.7.2017 19.15 "DEIBER ANDRES RINCON ROJAS" kirjoitti: > Hi to everybody, I'm developing an web application using Python and Django > and it requires storage of

Re: Django ORM and TestCase

2017-07-06 Thread Jani Tiainen
)? On Thursday, June 29, 2017 at 2:34:28 PM UTC-7, Jani Tiainen wrote: > Hi, > > In TestCase Django wraps all tests within transaction and makes commit and > rollback as no-op. > > So only code that is within transaction (your test) will see the data. > > After test is fin

Re: Deprecating model field (Deleting model field, but keeping DB column)

2017-07-05 Thread Jani Tiainen
That would influence the approach From what I understood from your original post this is just a matter of deploying the new app version that removes a field, so you would just need to run migrations after deploying On Wed, Jul 5, 2017 at 3:18 PM, Jani Tiainen

Re: Deprecating model field (Deleting model field, but keeping DB column)

2017-07-05 Thread Jani Tiainen
cussion on the web visit https://groups.google.com/d/msgid/django-users/e1f61e62-a6cc-44a4-ba35-7fa8b28c5549%40googlegroups.com <https://groups.google.com/d/msgid/django-users/e1f61e62-a6cc-44a4-ba35-7fa8b28c5549%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https

Re: Django Smart Selects - What does 'models world readable' mean??

2017-07-02 Thread Jani Tiainen
It means that there are no permission checks implied on models - so data you expose to select fields are readable by anyone for example by using curl tool. 2.7.2017 7.16 ip. "Mark Phillips" kirjoitti: > I need to chain some select boxes in my admin forms to make data

Re: Django ORM and TestCase

2017-06-29 Thread Jani Tiainen
Hi, In TestCase Django wraps all tests within transaction and makes commit and rollback as no-op. So only code that is within transaction (your test) will see the data. After test is finished a rollback is issued to remove all the data inserted to db. And there is no way to read that data

Re: Need to connect to django test database from out side of django(celery worker)

2017-06-26 Thread Jani Tiainen
Hi, In our CI integration testing we use special test database and we do explicitly set both normal connection and test connection to reuse the same database. Also we do use --keepdb to avoid database teardown. Note that you have to use transactional test otherwise your worker doesn't see data

Re: User Based role in Django

2017-06-21 Thread Jani Tiainen
; > Mannu > > On Jun 21, 2017 1:48 PM, "Jani Tiainen" <rede...@gmail.com> wrote: > >> Well its your code, so yes if you write code that does it. >> >> It doesn't happen magically for you. >> >> 21.6.2017 11.15 "Mannu Gupta" <abhima

Re: User Based role in Django

2017-06-21 Thread Jani Tiainen
Well its your code, so yes if you write code that does it. It doesn't happen magically for you. 21.6.2017 11.15 "Mannu Gupta" <abhimanyu98...@gmail.com> kirjoitti: > Hi , > Will I be able to trace if user upgrde the subscription level ? > > Manni > > On

Re: User Based role in Django

2017-06-21 Thread Jani Tiainen
Hi, We have been using user groups for that. And then we check and filter out based on given group(s). 21.6.2017 10.45 "Mannu Gupta" kirjoitti: > I want to make a role based user in Django like the following :- > > User with Subscription level 0 will have some feature

Re: I did the tutorial successfully but couldn't find similar examples for small project (for better understanding of Django programming)

2017-06-18 Thread Jani Tiainen
Hi, > On 18 Jun 2017, at 14.47, softie.co...@gmail.com wrote: > > Hi Jani! > > Am Sonntag, 18. Juni 2017 11:05:27 UTC+2 schrieb Jani Tiainen: > Hi, > > Seems that you've on right track. Just don't chew up too big bites. > > Thanks! Good to know that I'm no

Re: I did the tutorial successfully but couldn't find similar examples for small project (for better understanding of Django programming)

2017-06-18 Thread Jani Tiainen
Hi, Seems that you've on right track. Just don't chew up too big bites. I suggest that first you start mapping your real world ideas to models. Don't worry if you don't get it right at first try thats why migrations do exist. Also test driven development model could work nicely. Most of the

Re: Raw SQL - How to approach paging and lazy fetching

2017-06-16 Thread Jani Tiainen
n't seem to work unless there's a foreign key between the two models, however, given it's a legacy database, i can't touch the schema at all. Is it possible to query join results with managed=False? Thanks On Thursday, June 15, 2017 at 11:31:42 PM UTC-7, Jani Tiainen wrote: > Hi, > >

Re: Raw SQL - How to approach paging and lazy fetching

2017-06-16 Thread Jani Tiainen
legroups.com <https://groups.google.com/d/msgid/django-users/f6a3df97-8218-4fb8-b200-f4535797e135%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to

Re: Integration of Django with other python codes

2017-06-15 Thread Jani Tiainen
s/6316cf1b-91b9-4a64-9152-f6df0e21ba66%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe fro

Re: standard way for seeing permissions

2017-06-13 Thread Jani Tiainen
Hi! Excellent question. Permission model itself is not exposed in admin but you could expose it yourself if you want to. Just for curiosity what would be the usecase? 13.6.2017 19.05 "Alceu Rodrigues de Freitas Junior" < alceu.freitas...@gmail.com> kirjoitti: Hello folks, Is there a standard

Re: Catching errors inside transaction.atomic()

2017-06-13 Thread Jani Tiainen
Catching errors inside transaction might lead inconsistent state if the database if error handling swallows exception. Reraising exception or like you want to do raise new exception it would work as expected. Nested atomic blocks can be used to safely rollback state of database if you want to

Re: Multilingual site with Django 1.11 and Google Cloud Platform

2017-06-12 Thread Jani Tiainen
Hi We've been using django-modeltranslation very successfully. It's advantage is speed but drawback is that it creates colum per language 1per translated field. 12.6.2017 22.06 "Mihai Rusoaie" kirjoitti: > Hello! > > I have a website with content in Romanian. > > I

Re: new to django

2017-06-12 Thread Jani Tiainen
Ly3H9RVbSmG3cGLDwthP4pS3PrpRQ%40mail.gmail.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Same tutorial different day

2017-06-06 Thread Jani Tiainen
ource=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- 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

Re: Fetching API data in json format and inserting it into the django local database.

2017-06-05 Thread Jani Tiainen
way as in your script, unless fetch is really slow when you need to think of asynchronous alternatives. On Monday, June 5, 2017 at 2:07:08 PM UTC+2, Jani Tiainen wrote: Hi, First you need to decide how you are going to activate fetch data from remote company database

Re: Fetching API data in json format and inserting it into the django local database.

2017-06-05 Thread Jani Tiainen
sers/51eb014a-88f7-48cb-b729-f3c6e32461d3%40googlegroups.com <https://groups.google.com/d/msgid/django-users/51eb014a-88f7-48cb-b729-f3c6e32461d3%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You

Re: Please help me

2017-05-29 Thread Jani Tiainen
AMKXccCJACnD21icCahuCe%2BB993g%40mail.gmail.com <https://groups.google.com/d/msgid/django-users/CACbdT%3D0uo4XApksxz8yutWAMKXccCJACnD21icCahuCe%2BB993g%40mail.gmail.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You recei

Re: Please help two dependent list check boxes

2017-05-29 Thread Jani Tiainen
gid/django-users/f9802a16-4750-49f0-b01c-cea513d0cfe3%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. T

Re: Multiple uwsgi apps in one project

2017-05-26 Thread Jani Tiainen
r services in the datacenter The whole thing is about preserving same project environment. Models, registries, configuration should stay same. Middlewares, urls, views and anything related to http will be different. BR, Marcin W dniu piątek, 26 maja 2017 13:16:49 UTC+2 użytkownik Jani Tiaine

Re: Multiple uwsgi apps in one project

2017-05-26 Thread Jani Tiainen
ups.google.com/d/msgid/django-users/0da53e34-428d-4803-ba8f-dddc83c24443%40googlegroups.com <https://groups.google.com/d/msgid/django-users/0da53e34-428d-4803-ba8f-dddc83c24443%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optou

Re: vs {{ form }}

2017-05-16 Thread Jani Tiainen
ay 2017 14:08:44 Jani Tiainen wrote: > And to use bootstrap you don't need any special package, you can do it > without it just fine. To render a webpage, you don't need Django you can do just fine typing HTML. What's your point really? I know that I can render a webpag

Re: vs {{ form }}

2017-05-09 Thread Jani Tiainen
p/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9008764.HJ6FAVUOio%40devstation <https://groups.google.com/d/msgid/django-users/9008764.HJ6FAVUOio%40devstation?utm_medium=email_source=footer>. For more options, visit https://groups.google

Re: Django with generic odbc database

2017-05-03 Thread Jani Tiainen
4bc9-81f2-742e1f8966c1%40googlegroups.com <https://groups.google.com/d/msgid/django-users/c8c87780-8737-4bc9-81f2-742e1f8966c1%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you

Re: for loop + transaction.on_commit + celery = Unexpected Behaviour

2017-04-27 Thread Jani Tiainen
groups.google.com/d/msgid/django-users/91e87fb4-69e2-4b4e-bd6b-704eb7567026%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups

Re: send email with django

2017-04-19 Thread Jani Tiainen
-users/65e0ab09-ff5a-4ed5-89d6-e5e0991b9ea0%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscr

Re: send email with django

2017-04-19 Thread Jani Tiainen
tps://groups.google.com/d/msgid/django-users/65e0ab09-ff5a-4ed5-89d6-e5e0991b9ea0%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Dja

Re: Will function based views ever be deprecated?

2017-04-03 Thread Jani Tiainen
-- Jani Tiainen -- 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, send email to dj

Re: System check framework suiteable for monitoring?

2017-03-27 Thread Jani Tiainen
7f01b%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receivin

Re: Testing a Django library

2017-03-22 Thread Jani Tiainen
84e57b%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving em

Re: GeoDjango

2017-03-20 Thread Jani Tiainen
mapscript to publish maps. Not sure how mature that project is. On 18.03.2017 14:51, Samuel Brunel wrote: Hello, I’m new on GeoDjango, I need to known If I can use GeoDjango as WMS ? Best regards, Samuel -- Jani Tiainen -- You received this message because you are subscribed to the Google

Re: superuser having all permissions makes perm checking messy

2017-03-16 Thread Jani Tiainen
629dba5-cc73-4625-9d91-92741b7010a2%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from th

Re: django trouble

2017-03-14 Thread Jani Tiainen
n on the web visit https://groups.google.com/d/msgid/django-users/b91fed9e-772b-46a6-9e24-0381b3d67744%40googlegroups.com <https://groups.google.com/d/msgid/django-users/b91fed9e-772b-46a6-9e24-0381b3d67744%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.

Re: Redirection to SSO using Django

2017-03-08 Thread Jani Tiainen
e86285c-7e27-4792-9df2-f9703d557921%40googlegroups.com <https://groups.google.com/d/msgid/django-users/be86285c-7e27-4792-9df2-f9703d557921%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You recei

Re: Django context translations with dynamic variables

2017-03-02 Thread Jani Tiainen
work just fine, but still you need to do custom makemessages command that would understand your tag and it's syntax. Makemessages managemen command code can be found at: https://github.com/django/django/blob/master/django/core/management/commands/makemessages.py -- Jani Tiainen -- You receive

Re: Django context translations with dynamic variables

2017-03-02 Thread Jani Tiainen
/plus.google.com/+urievenchen> <http://www.linkedin.com/in/urievenchen> <http://github.com/urievenchen> <http://twitter.com/urievenchen> On Wed, Mar 1, 2017 at 4:15 PM, Jani Tiainen <rede...@gmail.com <mailto:rede...@gmail.com>> wrote: In theory you just

Re: Django context translations with dynamic variables

2017-03-01 Thread Jani Tiainen
418f-9045-44a947efde0d%40googlegroups.com <https://groups.google.com/d/msgid/django-users/5c01a596-23a2-418f-9045-44a947efde0d%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this messag

Re: Timeout when saving model in django admin page

2017-02-21 Thread Jani Tiainen
487670629.2604.6.camel%40atenekom.eu <https://groups.google.com/d/msgid/django-users/1487670629.2604.6.camel%40atenekom.eu?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed

Re: Multiple app css,html, javascript,img

2017-02-16 Thread Jani Tiainen
c35%40googlegroups.com <https://groups.google.com/d/msgid/django-users/215f85be-b377-4f44-a3bb-0e9311f31c35%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed

Re: Installing Django

2017-01-30 Thread Jani Tiainen
gid/django-users/86091d59-6578-4e85-9be0-d24beb1f5b84%40googlegroups.com <https://groups.google.com/d/msgid/django-users/86091d59-6578-4e85-9be0-d24beb1f5b84%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen

Re: Django channels on IIS

2017-01-27 Thread Jani Tiainen
://groups.google.com/d/msgid/django-users/4d9a0247-c5d0-4733-980f-dd991d871719%40googlegroups.com <https://groups.google.com/d/msgid/django-users/4d9a0247-c5d0-4733-980f-dd991d871719%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/

Re: Django channels on IIS

2017-01-25 Thread Jani Tiainen
il.gmail.com > <https://groups.google.com/d/msgid/django-users/CAFwN1urM2A4HBhPzbG4_Tgs_DKzab39-Pz_jzWa981AGfC0cYg%40mail.gmail.com?utm_medium=email_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Jani Tiainen - Well planned is half done, an

Re: Dynamic Models

2017-01-10 Thread Jani Tiainen
serve? I'm just trying to figure out what kind of system you're thinking to allow arbitrary ad-hoc models to be built? (What's the real world use case) On 10.01.2017 13:09, Guilherme Leal wrote: @Jani Tiainen I really like Django ORM, and will make everything possible to keep it. I think

Re: Dynamic Models

2017-01-09 Thread Jani Tiainen
go-users/CAOs3Lp7_R4RK%3DVconoQ1W6rzK8xYaiVJX-FHtyZ3Cxg4MmbOow%40mail.gmail.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: syncdb command can execute

2016-12-19 Thread Jani Tiainen
or more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- 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...@g

Re: Django Browser issue

2016-12-12 Thread Jani Tiainen
google.com/d/msgid/django-users/323689f9-62da-4840-8cef-3af945a8eb6f%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Django

Re: GeoDjango with Docker

2016-12-01 Thread Jani Tiainen
c0649e1-e2d8-4e56-9930-14e2f95135ef%40googlegroups.com <https://groups.google.com/d/msgid/django-users/7c0649e1-e2d8-4e56-9930-14e2f95135ef%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You recei

Re: ORA-00942: table or view does not exist

2016-11-13 Thread Jani Tiainen
quotes in table name but I still got the same error. On Fri, Nov 11, 2016 at 3:53 PM, Jani Tiainen <rede...@gmail.com <mailto:rede...@gmail.com>> wrote: Ok, since your model is not managed it doesn't create migrations either. If table name is written in uppercase, yo

Re: ORA-00942: table or view does not exist

2016-11-10 Thread Jani Tiainen
that problem is really your model? On 11.11.2016 02:03, Jeffrey Uvero wrote: Jani Tiainen, Thank you for your response . Yes, I am using legacy database , that's why I can't control the naming of columns and tables On Thu, Nov 10, 2016 at 4:16 PM, Jani Tiainen <rede...@gmail.com <mailt

Re: ORA-00942: table or view does not exist

2016-11-10 Thread Jani Tiainen
sit https://groups.google.com/d/msgid/django-users/CAEtSeGvm-qos2qReYNrffLStbRiwiKFHU%3DP73A9%2BCtea14epSg%40mail.gmail.com <https://groups.google.com/d/msgid/django-users/CAEtSeGvm-qos2qReYNrffLStbRiwiKFHU%3DP73A9%2BCtea14epSg%40mail.gmail.com?utm_medium=email_source=footer>. For more op

Re: Compiling/packing Django to one binary

2016-10-20 Thread Jani Tiainen
require something on a target machine. On 20 Oct 2016, at 09:15, Jani Tiainen <rede...@gmail.com <mailto:rede...@gmail.com>> wrote: Hi, If that's truely the case that you don't control anything, deploying Django will be really a hard problem. How do you can make sure that you can

Re: Compiling/packing Django to one binary

2016-10-20 Thread Jani Tiainen
googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>. -- Jani Tiainen -- You received this message because you are subscribed to the Google Groups "Dj

Re: Start point of dynmanic models creation.

2016-10-19 Thread Jani Tiainen
tions, visit https://groups.google.com/d/optout. -- Jani Tiainen -- 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.

Re: Compiling/packing Django to one binary

2016-10-19 Thread Jani Tiainen
e options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- 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...@googleg

Re: New Record vs Updating Existing

2016-10-14 Thread Jani Tiainen
4985-84cc-e0fccc46bcd1%40googlegroups.com <https://groups.google.com/d/msgid/django-users/1560dd92-5263-4985-84cc-e0fccc46bcd1%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you

Re: Django software docs

2016-09-26 Thread Jani Tiainen
t;. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- 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...@g

Re: Getting Start Django

2016-09-02 Thread Jani Tiainen
oglegroups.com <https://groups.google.com/d/msgid/django-users/28f0e8f0-9183-42f9-97fd-365286f432d9%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the

Re: Hi, i'm new to django i need some mini project which contain atleast 4 page for go through how it works

2016-09-01 Thread Jani Tiainen
go-users/6e0c989c-6b20-44c0-930a-67f3a0fac3f9%40googlegroups.com <https://groups.google.com/d/msgid/django-users/6e0c989c-6b20-44c0-930a-67f3a0fac3f9%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You recei

Re: what is the unit of measure in GEOSGeometry.area

2016-08-24 Thread Jani Tiainen
oglegroups.com <https://groups.google.com/d/msgid/django-users/2669a838-8229-4edb-bd9f-787e06bd3f6c%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are subscribed to the Google

Re: Non relational databases (MongoDB) with Django

2016-08-17 Thread Jani Tiainen
? On Wednesday, August 17, 2016 at 5:25:01 PM UTC+5:30, Jani Tiainen wrote: Hi, Well you can use non relational databases with django. This of course means that you don't have ORM for that, use them as is. Way simpler than trying to force ORM (which stands for object relational mapper

Re: Non relational databases (MongoDB) with Django

2016-08-17 Thread Jani Tiainen
ons, visit https://groups.google.com/d/optout. -- Jani Tiainen -- 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. T

Re: Web based IDE for django

2016-08-15 Thread Jani Tiainen
Hi, Just for curiosity, can you point out any web based editor does what you're asking for, even not Python based? To me it sounds that you want to have some kind of (web based) wizard to generate most of the code for you. Since you feel repeating your way of workin, why not to write IDE

Re: It is possible to somehow fill the database data as soon as all applications will be loaded?

2016-07-26 Thread Jani Tiainen
Hi, Sounds like you're in need of data migrations to insert initial data while building up your database schema. On 26.07.2016 11:14, Seti Volkylany wrote: It is possible to somehow fill the database data as soon as all applications will be loaded. I explain the problem. It is necessary that

Re: Django PostGis BUG?

2016-07-15 Thread Jani Tiainen
op receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://group

Re: How manually, in Django 1.9, determinate all urls in a project without the django-extension`s command show_urls?

2016-07-13 Thread Jani Tiainen
roups.google.com/d/msgid/django-users/8648b67c-a5ff-471c-b940-81dbce18d0b2%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/8648b67c-a5ff-471c-b940-81dbce18d0b2%40googlegroups.com?utm_medium=email_source=footer> > . > For more options, visit https://groups.google.

Re: how to design custom forms in django with bootstrap

2016-06-21 Thread Jani Tiainen
more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- 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...@goo

Re: Django TCP Socket Communication

2016-06-16 Thread Jani Tiainen
Oops, apparently you hijacked over year old thread... On 16.06.2016 13:45, Anil reddy reddy M wrote: Hi, I made a TCP Server Socket programming in python, it's nicely communicating with micro controller, and also i can store latitude ,longitude values in MySqldb from GPS output. Now I want

Re: Django TCP Socket Communication

2016-06-16 Thread Jani Tiainen
. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAGpTuntzqwVFUfouUT%2BEvxL1AFvap25KNocQrL5o0xK1EBcJWg%40mail.gmail.com <https://groups.google.com/d/msgid/django-users/CAGpTuntzqwVFUfouUT%2BEvxL1AFvap25KNocQrL5o0xK1EBcJWg%40mail.gmail.com?utm_medium=emai

Re: How change returned value after annotation queryset of model?

2016-06-16 Thread Jani Tiainen
6b9bdbc-a292-4162-9809-59a55d63ff34%40googlegroups.com <https://groups.google.com/d/msgid/django-users/16b9bdbc-a292-4162-9809-59a55d63ff34%40googlegroups.com?utm_medium=email_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this messag

Re: Choice fields not validated while saving to database

2016-05-30 Thread Jani Tiainen
On 30.05.2016 13:33, Vinayak Kaniyarakkal wrote: On Monday, 30 May 2016 15:24:57 UTC+5:30, Jani Tiainen wrote: Django doesn't validate models automatically. You can validate model manually as per docs: <https://docs.djangoproject.com/en/1.9/ref/models/instances/#validat

Re: Choice fields not validated while saving to database

2016-05-30 Thread Jani Tiainen
Django doesn't validate models automatically. You can validate model manually as per docs: On 30.05.2016 12:38, Vinayak Kaniyarakkal wrote: The following code is "failing silently" class

Re: How to select undetermined field(s) in django model?

2016-05-26 Thread Jani Tiainen
You need to construct a dict with fieldname value pairs, like: search = {'field1': value1, 'field2', value2} And then you can do standard python kw-expansion: MyModel.objects.filter(**search) Though I suspect you want to do that for arbitrary fields so you should filter out all bad stuff

Re: Django Beginner

2016-05-26 Thread Jani Tiainen
And after that official tutorial there exists Django Girls and Django Taskbuster which are much more verbose tutorials. On 26.05.2016 14:45, Matthias Müller wrote: h, what about making the tutorial ? https://docs.djangoproject.com/en/1.9/intro/tutorial01/ enjoy it ! 2016-05-26 9:16

Re: Complicated relationships

2016-05-23 Thread Jani Tiainen
Something like Chef: # Nothing special here, reverse relations will be done automatically Dish: chef = ForeignKey(Chef) Restaurant: chefs = ManyToMany(Chef) dishes = ManyToMany(Dish) Of course, you need to build something to make sure that restaurant doesn't serve dishes that

Re: Trying to make a POST call to a Django view

2016-05-02 Thread Jani Tiainen
something like django-nap or django-rest-framework is a great help. -- Jani Tiainen -- 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-user

Re: Help with django.

2016-04-19 Thread Jani Tiainen
Hi, you should start with tutorials, Django official: https://docs.djangoproject.com/en/1.8/intro/tutorial01/ Django Girls Tutorial: http://tutorial.djangogirls.org/ And finally on my list is Marina Mele's tutorial: http://www.marinamele.com/taskbuster-django-tutorial On 19.04.2016 14:23,

Re: install geodjango in windows 10

2016-04-12 Thread Jani Tiainen
Hi, GeoDjango is actually built in as django.contrib.gis package so it's "batteries included". To make it work you need to have certain GEOS and GDAL libraries. Easiest way to get them is install either MS4W stack or PostGIS librarios for PostgreSQL. Also there exists few constraints for

Re: Why doesn't {{ form.field.value }} return cleaned data?

2016-03-31 Thread Jani Tiainen
On 31.03.2016 01:08, Ryan Prater wrote: Say I have a TypedMultipleChoiceField and I'm building a custom select multiple widget in my template. If I want to check a box based on an initial value (ie. default checked options), OR check a box based on form data that has been returned (ie.

Re: execute python through ajax

2016-03-09 Thread Jani Tiainen
On 09.03.2016 15:55, Florian Hoedt wrote: Hello Django users, I would like to execute some python code by JS. For example if somebody clicks on a openlayers map it should execute a python based query and get the result as JSON to render it on the map. How would I achieve something like

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

<    1   2   3   4   5   6   7   8   >