Re: Django : use openstreetMap and postgis to add geolalization field to localizate my users in a country

2019-02-20 Thread Jani Tiainen
Hi. Definitely it is possible and it isn't even very hard to do. ke 20. helmik. 2019 klo 12.31 abdouramane mahamane kirjoitti: > I'm new in django and i want to use openstreetMap parameters into users > field city or street. > This localization will allow me to find them and to measure the dist

Re: How to sent OTPA verification in mail while login with django

2019-02-22 Thread Jani Tiainen
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 django-users@googlegroups.com. > Visit this group at https:

Re: how can begin to create my web application

2019-02-22 Thread Jani Tiainen
ps.google.com/d/msgid/django-users/d1611c69-6ec3-4406-bb65-94e088d34f87%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Jani Tiainen - Well planned is half done, and a half done has been sufficient before.

Re: looking for team members as my technical Advisory

2019-02-22 Thread Jani Tiainen
his discussion on the web visit > https://groups.google.com/d/msgid/django-users/4298c126-9392-4691-a40b-51420ebbaea1%40googlegroups.com > . > For more options, visit https://groups.google.com/d/optout. > -- Jani Tiainen - Well planned is half done, and a half done has been sufficient b

Re: Tutorials Needed

2019-03-01 Thread Jani Tiainen
s.google.com/d/msgid/django-users/c98acb13-6845-4fc2-856c-cc11757d40ab%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/c98acb13-6845-4fc2-856c-cc11757d40ab%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://

Re: Connection Reset by Peer

2019-03-11 Thread Jani Tiainen
Hi. Usually error means that client (browser) terminated connection before request was completely handled and returned to client. ma 11. maalisk. 2019 klo 17.58 Alex Snyder kirjoitti: > Hello, > I'm working on a webhook receiver and all was working fine the other day. > Now I'm receiving con

Re: Connection Reset by Peer

2019-03-11 Thread Jani Tiainen
ch 11, 2019 at 2:17:22 PM UTC-5, Jani Tiainen wrote: >> >> Hi. >> >> Usually error means that client (browser) terminated connection before >> request was completely handled and returned to client. >> >> >> >> >> ma 11. maalisk. 2019 klo 17

Re: test if model object fits into QuerySet without executing SQL?

2019-03-18 Thread Jani Tiainen
ils 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://groups.google.com/d

Re: How To Use PostgreSQL with your Django on Ubuntu

2019-03-19 Thread Jani Tiainen
db00d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Jani Tiainen Software wizard https://blog.jani.tiainen.cc/ Always open for short term jobs or contracts to work with Django. -- You received this me

Re: How to filter 'Invalid HTTP_HOST header ...' errors

2019-03-24 Thread Jani Tiainen
tps://groups.google.com/d/msgid/django-users/3a45a72c-714d-c003-e237-417c899c430e%40dewhirst.com.au > <https://groups.google.com/d/msgid/django-users/3a45a72c-714d-c003-e237-417c899c430e%40dewhirst.com.au?utm_medium=email&utm_source=footer> > . > For more options, visit https://gro

Re: How to deploy migrations to production

2019-04-02 Thread Jani Tiainen
Hi. You should deliver migrations as part of your product and run them on production. Just like you do with collectstatic command you run migrate command. Eventually you will have data migrations and those you can't recreate on production. Also if you recreate migrations on production again there

Re: How this Line of code works

2019-04-14 Thread Jani Tiainen
Hi. get_object_or_404 works so that first argument is the model class you want to query. Rest of the parameters are filters that mus return a single object. You can find this information from the Django docs as well. ma 15. huhtik. 2019 klo 7.23 Mayur Bagul kirjoitti: > how passing Question a

Re: 'WSGIRequest' object has no attribute 'Files'

2019-04-16 Thread Jani Tiainen
Hi. It is .FILES all in capital. Not just first letter. ti 16. huhtik. 2019 klo 10.05 Soumen Khatua kirjoitti: > Hi Folks, > I'm getting this error 'WSGIRequest' object has no attribute 'Files' and > i didn't get proper solution in google also. I alredaty took > *enctype="multipart/form-data"*

Re: ReportLab or Xhtml2pdf Please can any one guide me to convert the rendered in html to pdf

2019-04-19 Thread Jani Tiainen
Hi. I've had pretty good success with wkthtmltopdf. pe 19. huhtik. 2019 klo 21.11 Irfan Khan kirjoitti: > hi, > i stucked in converting the pdf file from html > can an one suggest me even any other possibility instead of using python > library > > -- > You received this message because you are

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Jani Tiainen
t;https://groups.google.com/d/msgid/django-users/0fd23be8-b2d7-437e-b3e7-05c1f5bcdf4e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Jani Tiainen Software wizard https://blog.jani.tiainen.cc/ Always

Re: Advanced permissions and role creation

2019-04-21 Thread Jani Tiainen
visit > https://groups.google.com/d/msgid/django-users/CAA%3Diw_9BrOEh4Ss3X0g_EnaFyp1XTXij5DoZvva_XxwKVzXsGQ%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAA%3Diw_9BrOEh4Ss3X0g_EnaFyp1XTXij5DoZvva_XxwKVzXsGQ%40mail.gmail.com?utm_medium=email&utm_source=footer> > . &

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Jani Tiainen
this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/4ca5e82d-f34b-4ab4-8f82-5be0dcdebecc%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/4ca5e82d-f34b-4ab4-8f82-5b

Re: Django - always getting False in form.is_valid()

2019-04-21 Thread Jani Tiainen
ompleted = models.BooleanField(default=False,required=False) >> >> On Sun, 21 Apr 2019 at 17:23, Sipum Mishra wrote: >> >>> Hi Jani, >>> form.errors gives error as - >>> >>> itemThis field is >>> required.< >>> /li> &g

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Jani Tiainen
om/d/msgid/django-users/f301b675-6587-434e-b25d-87de9d9fef10%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/f301b675-6587-434e-b25d-87de9d9fef10%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. >

Re: testing API

2019-04-22 Thread Jani Tiainen
/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/5596723f-0358-41b5-9b0f-cf0f9dc84057%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/5596723f-0358-41b5-9b0f-cf0f9dc84057%40googlegroups.com?utm_medium=email&am

Re: GraphQL and Django integration

2019-04-28 Thread Jani Tiainen
il.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Jani Tiainen Software wizard https://blog.jani.tiainen.cc/ Always open for short term jobs or contracts to work with Django. -- You received this message because you are

Re: Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-28 Thread Jani Tiainen
Hi. Django 2.2 supports Oracle 12.1+. Oracle 11g support was dropped with Django 2.0. If you want to use Oracle 11g (which is out of support anyway from Oracle) you either need to downgrade to Django 1.11 and cx_Oracle 6.4.1 I really suggest you to update at least latest Oracle 12.2 which is stil

Re: Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-28 Thread Jani Tiainen
yntax. On Sun, Apr 28, 2019 at 12:59 PM Jani Tiainen wrote: > Hi. > > Django 2.2 supports Oracle 12.1+. Oracle 11g support was dropped with > Django 2.0. If you want to use Oracle 11g (which is out of support anyway > from Oracle) you either need to downgrade to Django 1.11 and cx_

Re: More controls on createsuperuser

2019-04-29 Thread Jani Tiainen
I've have to agree that any attempt to limit superuser creation through manage.py is wrong solution to wrong problem. Even it's possible to attempt it it is as easy to circumvent. So do not give an access to manage.py to users that are not supposed to. Problem solved for good. ma 29. huhtik. 201

Re: Unit conversions between model field value and form field value

2019-05-08 Thread Jani Tiainen
Hi. You could create custom form field that makes conversions both ways. ke 8. toukok. 2019 klo 1.25 Tim Bell kirjoitti: > Hi, > > I have a model with an integer field storing a duration in hours, while I > want to present that to users in a form in days. (The choice of these > different units

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Jani Tiainen
You could try django-select2 for example. to 9. toukok. 2019 klo 11.03 Balaji Shetty kirjoitti: > > HI > > *How can I add cascading drop down for Continent and Country in Django > Admin Panel.* > > Here I add Continent and Country. > > When i change Continent, Country should be changed automatic

Re: How to Create Program to get current temperature of computer cpu?

2019-05-09 Thread Jani Tiainen
Hi. This is not actually Django issue. I bet there are several libs that can do it. ke 8. toukok. 2019 klo 17.01 Mayur Bagul kirjoitti: > Hello community, > > i searched on google bout this and what i found was psutil is no longer > having check temperature attribute. > > im not getting how t

Re: reg: Django model sequense of the fields

2019-05-09 Thread Jani Tiainen
Hi. There is no correlation between field order in your model and order in database or database tools. They though accidentally be the same. ke 8. toukok. 2019 klo 18.52 'Amitesh Sahay' via Django users < django-users@googlegroups.com> kirjoitti: > Hello Users, > > I am seeing a very strange is

Re: How to make Django Project Mobile Compatible

2019-05-11 Thread Jani Tiainen
Hi, After all it's just HTML and CSS you need and you can make responsive layouting. One quite common CSS library is Bootstrap that allows rather easily to build layouts that works across the various sized devices. Of course you can go with any JS framework if you're planning to build single pag

Re: Django background scheduled app

2019-05-20 Thread Jani Tiainen
Hi, There are also other alternatives for background processing than celery. Like django-rq or django-background-tasks. ma 20. toukok. 2019 klo 16.14 Chetan Ganji kirjoitti: > celery is what you need for this. It is very simple. Just stick to it, > find some examples on youtube for celery, an

Re: Creating a log for any changes in any model data i.e creation, updation and deletion??

2019-06-24 Thread Jani Tiainen
Hi. Note that there are still ways to modify data withouth signals getting fired. Nor save or delete is called. ma 24. kesäk. 2019 klo 18.54 Abhishek Tiwari kirjoitti: > That is the approach i have in mind.. Thank you.. > > On Monday, 24 June 2019 20:08:06 UTC+5:30, Brandon Rosenbloom wrote: >

Re: Creating pdf in python

2019-06-27 Thread Jani Tiainen
I've been also very succesful with wkhtmltopdf. to 27. kesäk. 2019 klo 18.44 Larry Martell kirjoitti: > On Thu, Jun 27, 2019 at 10:45 AM Django Dojo > wrote: > > > > Hello everyone, > > > > I have a pdf template and I need different Individuals(s) to fill out > different sections of the documen

Re: OTP Verification

2019-07-01 Thread Jani Tiainen
Hi. I wrote short blog post how to do simple OTP. http://blog.jani.tiainen.cc/django/2019/02/19/django-otp-simple-way.html HTH. ti 2. heinäk. 2019 klo 4.33 ravikumar dingari kirjoitti: > Actually generated OTP but , Don't know how to verify, can any one help > > -- > You received this message

Re: order of loading css-files

2019-07-02 Thread Jani Tiainen
Hi. It's your browser not Django. Django just emits HTML that is parsed by your browser. ti 2. heinäk. 2019 klo 15.14 Kai Kobschätzki kirjoitti: > Hi: > > I tried to load bootstrap and an own css-file. But in which order does > django load it? > > I have tried in my base.html: > > > {% load s

Re: Doubt about Custom User Model

2019-07-04 Thread Jani Tiainen
Hi Models always do belong to app. All apps do have AppConfig (one or more) So when adding app (and thus models) to INSTALLED_APPS you need to point to which AppConfig you use (defined in apps.py) to 4. heinäk. 2019 klo 11.58 pastrufazio kirjoitti: > Hi! > > I've read some examples about cust

Re: help

2019-07-05 Thread Jani Tiainen
Hi. Please don't hijack other people threads but start a new one. pe 5. heinäk. 2019 klo 15.55 Manjunatha Sai Uppu kirjoitti: > I am new to web development in django , i have some questions that > 1. Is it necessary to learn html,css? > No. Absolutely no. You can write plain backend code fo

Re: Django 2.2 Media files

2019-07-05 Thread Jani Tiainen
Hi. What you did is correct and expected. Upload_to is relative path to MEDIA_ROOT in case of normal file upload backend. There are many others like S3. Now MEDIA_URL is absolute path of web server which points to MEDIA_ROOT. In development you can use static file serving trick like you did. No

Re: saving inherited model overwrites base model

2019-07-05 Thread Jani Tiainen
Hi. I think you have a bit confused terms model inheritance and abstract models. Normal model inheritance in Django means that there will be implicit one to one relation to base model. Inherited model still receives all fields from parent model. On save data is just saved to correct models. To bo

Re: cicking to menu in navebar leads another subpage /subpage

2019-07-08 Thread Jani Tiainen
Hi. There are two things wrong. First and most important is that you should always use {%url %} template tag to form urls to other django urls and preferably by using named url patterns. Secondly your hardcoded urls are relative. So each time you click link it is appended to current url. If you

Re: reg: Object of type 'ListSerializer' is not JSON serializable

2019-07-08 Thread Jani Tiainen
Hi. In your view instead of using Response(serializer) you need to use Response(serializer.data) HTH. ma 8. heinäk. 2019 klo 19.48 'Amitesh Sahay' via Django users < django-users@googlegroups.com> kirjoitti: > hello Members, > > I am working on some POC for django rest framework. Its very simp

Re: NEWBIE

2019-07-09 Thread Jani Tiainen
And to give some perspective I have been working with Django @work last 10 years and I'm still far from mastering it. I'm pretty good with Django though. In other words it really takes a lot. Interns at work do get hang of basics in about two months but really them to get up to speed takes somewhe

Re: Trademark search

2019-07-09 Thread Jani Tiainen
Hi. Web page, database and most propably some programming to make search magic happen. ti 9. heinäk. 2019 klo 13.44 Django Dojo kirjoitti: > Hello, > I’m trying to build a trademark search like: > https://www.trademarkengine.com/free-trademark-search/trademark-search. > > Can someone recommend

Re: CockroachDB & Django

2019-07-09 Thread Jani Tiainen
Hi. You should setup test environment that runs Django database tests against your backend. Preferably somewhere visible to public. That way it would be easier to start figuring out areas of improvement. ti 9. heinäk. 2019 klo 2.29 'Andy Woods' via Django users < django-users@googlegroups.com> k

Re: Trademark search

2019-07-09 Thread Jani Tiainen
ou're already capable of building similar trademark search site. ti 9. heinäk. 2019 klo 15.47 Django Dojo kirjoitti: > Are there any Django packages or api being used? > > On Tuesday, July 9, 2019, Jani Tiainen wrote: > >> Hi. >> >> Web page, database and most

Re: cicking to menu in navebar leads another subpage /subpage

2019-07-09 Thread Jani Tiainen
i use {% url %} > > > On Monday, 8 July 2019 22:26:07 UTC+5:45, Jani Tiainen wrote: >> >> Hi. >> >> There are two things wrong. >> >> First and most important is that you should always use {%url %} template >> tag to form urls to other django urls and

Re: E-mail sending... but.. not sending?

2019-07-09 Thread Jani Tiainen
Hi. Looks like your backend isn't right if you see message in the console. Also if using gmail you have allowed insecure apps? ti 9. heinäk. 2019 klo 17.47 grwhumphries kirjoitti: > I've got a bit of a mystery. I've got a Django Wagtail project with > Spirit as an added app. I'm trying to g

Re: Django Login Secret key

2019-07-09 Thread Jani Tiainen
Hi. What are you trying to do? In other words why do you need to replace secret key by user input at login? ke 10. heinäk. 2019 klo 8.54 Sebastian Jung kirjoitti: > Hello, > > I want in my Login Page a further field Secret Key. This Input ist > replacement dir Secret Key in settings.py. Ist t

Re: Django Login Secret key

2019-07-10 Thread Jani Tiainen
Oh you want to have false security. First this has nothing to do with Django and it's secret key. You can use any secret key in your case it would be user input. Also you can use any cryptography algorithm to secure your data in the database. And here is the problem - to make user experience plea

Re: Can I override __new__ in Django ModelForm?

2019-07-10 Thread Jani Tiainen
Hi. You can add fields dynamically on model __init__ method and AFAIK that's best and recommended way to do it. I'm not sure is that even in Django docs. ke 10. heinäk. 2019 klo 17.44 אורי kirjoitti: > Hi, > > I have a ModelForm with Django 1.11, and I'm moving a few fields to > another model

Re: ValueError

2019-07-10 Thread Jani Tiainen
Hi. Because indentation is broken it's hard to say exact problem location but in your view some code path doesn't return anything and thus you see error about returning None. ke 10. heinäk. 2019 klo 21.05 Desh Deepak kirjoitti: > Hi, I want to insert some data in MysqlDatabase from the template

Re: Form validations

2019-07-11 Thread Jani Tiainen
Hi. Usually you validate user input and by using Forms or ModelForms. to 11. heinäk. 2019 klo 12.50 Irfan Khan kirjoitti: > Dear members, > I wanted to validate the form which contains the name, phone number, > address,email, etc.., > I have developed and tested it if we give any character it’

Re: Create a multitab home page of a blog

2019-07-16 Thread Jani Tiainen
Hi. Well most of the things you describe are not spesific to django but just how you do layout your data with HTML. And yes all can be done with django. Being sensible? That is really subjective matter. ti 16. heinäk. 2019 klo 5.22 Nicolas Huergo kirjoitti: > Hey! > > I'm pretty much new to D

Re: ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-16 Thread Jani Tiainen
At least you should't call super.clean_fields() in clean() method... Also how are you outputting errors in your template? ti 16. heinäk. 2019 klo 5.22 Jacob Greene kirjoitti: > Hello! Has anyone dealt with this before? It seems that my forms don't add > the CSS class to errors raised in model.

Re: ModelForm "error_css_class" not getting applied to ValidationErrors raised in model.clean()

2019-07-16 Thread Jani Tiainen
Full_clean is Django internal method which you should't touch. .clean() method validation errors go to special non-field errors and by quick look it should get correct css class. If you could provide minimal project with suspected faulty behavior (for example in github) it would be easier to see

Re: angular or vue js

2019-07-16 Thread Jani Tiainen
Any. Django really don't care about it. There exists also at least react and svelte too... ti 16. heinäk. 2019 klo 13.33 Pradeep Singh kirjoitti: > which framework is good with django angular or vue js please suggest > me best one > > -- > You received this message because you are subscribed

Re: Reach the server

2019-07-16 Thread Jani Tiainen
Hi. Did you mapped 8000 port to outside of vagrant box? And did you told runserver to listen all interfaces (0.0.0.0) since by default runserver listens to localhost. In case of vagrant "localhost" interface is within vagrant box itself. ti 16. heinäk. 2019 klo 5.22 CHENXIN YANG kirjoitti: > I

Re: E-Mail Client Django

2019-07-16 Thread Jani Tiainen
Hi. Err... if you don't find one code a one? ma 15. heinäk. 2019 klo 23.08 Sebastian Jung kirjoitti: > Hello, > > i want a full complete E-Mail client like https://www.mailpile.is/ but in > django. I need only from mailpile a view with template with email > directories on left side and in rest

Re: What's the best way to have app access permissions?

2019-07-16 Thread Jani Tiainen
We use django groups for that. So we give groupnames like ALLOW_SOMETHING and then in code and templates we do check if user has that group or not. ti 16. heinäk. 2019 klo 19.26 Tal kirjoitti: > I know you can have permissions on individual models that control which > users have access to them,

Re: Query questions. Please help me.

2019-07-17 Thread Jani Tiainen
Hi. You can use dictionary unpacking to kwargs. .filter(**{"name__contains": "foo", "somefield__gt": 123}) ke 17. heinäk. 2019 klo 23.04 나르엔 kirjoitti: > Hello, I am studying django. > > When I use objects.filter, I want to search various columns. > > Columns to search for are unknown and ha

Re: sqlite update on CentOS 7 for latest django version

2019-07-18 Thread Jani Tiainen
Hi. I think Python has built in version so you might need to build custom version of python. Pyenv is pretty neat tool to handle custom python builds. ke 17. heinäk. 2019 klo 21.36 Tal kirjoitti: > Or is Python's sqlite built into Python, not depending on /usr/bin/sqlite3 > at all? > Would I h

Re: use of migrate command and how to see the tables

2019-07-19 Thread Jani Tiainen
Hi. Migrate command applies migrations, changes to your models, into database. For example if you add a new field in your model you need to create a migration (piece of code that reflects your change) using makemigrations command. Once you have made migration(s) you need to apply them so databas

Re: SQLite 3.8.3 or later is required (found 3.7.17).

2019-07-19 Thread Jani Tiainen
Hi. Error is simple. Python is using too old version of sqlite. There are few options to fix that depending what os your system runs on. Though sqlite is not very suitable for production so you may want to use something better like Postgres. pe 19. heinäk. 2019 klo 22.14 anchal agarwal kirjoit

Re: Django channels on IIS

2017-01-25 Thread Jani Tiainen
django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/django-users/CAFwN1urM2A4HBhPzbG4_Tgs_DKzab39-Pz_jzWa981AGfC0cYg% > 40mail.gmail.com > <https://groups.go

Re: Django channels on IIS

2017-01-27 Thread Jani Tiainen
https://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&utm_source=footer>. For more options, visit https://groups.googl

Re: Installing Django

2017-01-30 Thread Jani Tiainen
ussion on the web visit https://groups.google.com/d/msgid/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&utm_source=footer>. For more options, v

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&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are

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&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this message because you are

Re: Django context translations with dynamic variables

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

Re: Django context translations with dynamic variables

2017-03-02 Thread Jani Tiainen
dysoftware.com/uri/en/ <http://www.facebook.com/urievenchen> <http://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 <mailto:

Re: Django context translations with dynamic variables

2017-03-02 Thread Jani Tiainen
ontains possible values and then variable to choose among them. That could 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/

Re: Redirection to SSO using Django

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

Re: django trouble

2017-03-14 Thread Jani Tiainen
ussion 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&utm_source=footer>. For more options, visit https

Re: superuser having all permissions makes perm checking messy

2017-03-16 Thread Jani Tiainen
om/d/msgid/django-users/d629dba5-cc73-4625-9d91-92741b7010a2%40googlegroups.com?utm_medium=email&utm_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"

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: Testing a Django library

2017-03-21 Thread Jani Tiainen
84e57b%40googlegroups.com?utm_medium=email&utm_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 r

Re: System check framework suiteable for monitoring?

2017-03-27 Thread Jani Tiainen
02-9e98d757f01b%40googlegroups.com?utm_medium=email&utm_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 gro

Re: Will function based views ever be deprecated?

2017-04-03 Thread Jani Tiainen
- but couldn't use the generic FormView for that though. Regards, Andréas -- 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 dj

Re: send email with django

2017-04-19 Thread Jani Tiainen
google.com/d/msgid/django-users/65e0ab09-ff5a-4ed5-89d6-e5e0991b9ea0%40googlegroups.com <https://groups.google.com/d/msgid/django-users/65e0ab09-ff5a-4ed5-89d6-e5e0991b9ea0%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/op

Re: send email with django

2017-04-19 Thread Jani Tiainen
5e0ab09-ff5a-4ed5-89d6-e5e0991b9ea0%40googlegroups.com <https://groups.google.com/d/msgid/django-users/65e0ab09-ff5a-4ed5-89d6-e5e0991b9ea0%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received t

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

2017-04-26 Thread Jani Tiainen
b4-69e2-4b4e-bd6b-704eb7567026%40googlegroups.com <https://groups.google.com/d/msgid/django-users/91e87fb4-69e2-4b4e-bd6b-704eb7567026%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You receiv

Re: Django with generic odbc database

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

Re: vs {{ form }}

2017-05-09 Thread Jani Tiainen
https://groups.google.com/group/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&utm_source=footer>. For

Re: vs {{ form }}

2017-05-16 Thread Jani Tiainen
esday 09 May 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 t

Re: Multiple uwsgi apps in one project

2017-05-26 Thread Jani Tiainen
b visit https://groups.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&utm_source=footer>. For more options, visit https://g

Re: Multiple uwsgi apps in one project

2017-05-26 Thread Jani Tiainen
talking with other 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

Re: Please help two dependent list check boxes

2017-05-29 Thread Jani Tiainen
oups.google.com/d/msgid/django-users/f9802a16-4750-49f0-b01c-cea513d0cfe3%40googlegroups.com?utm_medium=email&utm_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: 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&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- Y

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

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

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

2017-06-05 Thread Jani Tiainen
se views.py to do it. Same 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 remot

Re: Same tutorial different day

2017-06-06 Thread Jani Tiainen
s/09c07d79-bcbf-4451-9d73-9d7189e66dfc%40googlegroups.com?utm_medium=email&utm_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 uns

Re: new to django

2017-06-12 Thread Jani Tiainen
DwthP4pS3PrpRQ%40mail.gmail.com?utm_medium=email&utm_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

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 would like to create an Eng

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 han

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: Integration of Django with other python codes

2017-06-15 Thread Jani Tiainen
s/6316cf1b-91b9-4a64-9152-f6df0e21ba66%40googlegroups.com?utm_medium=email&utm_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: Raw SQL - How to approach paging and lazy fetching

2017-06-15 Thread Jani Tiainen
-8218-4fb8-b200-f4535797e135%40googlegroups.com <https://groups.google.com/d/msgid/django-users/f6a3df97-8218-4fb8-b200-f4535797e135%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- Jani Tiainen -- You received this mes

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

2017-06-16 Thread Jani Tiainen
ork 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, > > E

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 thi

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 t

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 and some basic > fields li

<    1   2   3   4   5   6   7   8   >