Re: Easiest front end JavaScript framework to integrate with a Django backend?

2018-11-29 Thread Jani Tiainen
Also there exist ExtJS, Dojo Toolkit and at least Svelte which I've tried... kennedy kay kirjoitti to 29. marrask. 2018 klo 21.25: > For me personally I would recommend AngularJS. Not just because it easy to > integrate with Django but because you can also create mobile applications > on the fly

Re: Easiest front end JavaScript framework to integrate with a Django backend?

2018-11-29 Thread Jani Tiainen
gt; >> Currently I integrate VueJS, it works like a charm, the documentation is >> awesome >> >> Le jeu. 29 nov. 2018 21:17, Jani Tiainen a écrit : >> >>> Also there exist ExtJS, Dojo Toolkit and at least Svelte which I've >>> tried... >>>

Re: Tutorial - runserver freezes command prompt

2018-11-29 Thread Jani Tiainen
m. > 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/c6623559-baf7-4313-bf10-be9106850f74%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/c6623559-baf7-4313-b

Re: Why isn't user.photo being saved in UpdateView?

2018-12-01 Thread Jani Tiainen
It's not a Django but generic requirement to send files within HTML form. Jim Wombles kirjoitti la 1. jouluk. 2018 klo 11.41: > I solved the problem after digging around in the Django Forms related to > ImageFields and FileFields. I needed to add the enctype="multipart/form-data"> attribute in

Re: path('posts/(?P[0-9]+)/$'

2018-12-02 Thread Jani Tiainen
Hi. Path is a new url format which uses format of for exanple like . If you want to use regular expressions use re_path instead. kirjoitti su 2. jouluk. 2018 klo 19.42: > When I run http://localhost:8000/posts/2 > > I get the error: > > > Using the URLconf defined in blog.urls, >

Re: path('posts/(?P[0-9]+)/$'

2018-12-03 Thread Jani Tiainen
ember 2, 2018 at 10:00:17 AM UTC-8, Jani Tiainen wrote: >> >> Hi. >> >> Path is a new url format which uses format of for >> exanple like . If you want to use regular expressions use >> re_path instead. >> >> kirjoitti su 2. jouluk. 2018 klo 19

Re: I want to build dynamic report tool using and postgres and reports are like tables based on locations

2018-12-16 Thread Jani Tiainen
Hi. I've been using wkhtmltopdf for my reports. It's very easy to use and best of all you can use whatever webkit browsers do support. There also exists reportlab that can generate reports. aryan patel kirjoitti su 16. jouluk. 2018 klo 21.18: > Kindly give me any suggestions or any guidance .

Re: Translation with context

2018-12-25 Thread Jani Tiainen
ribed 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: Building a framework

2018-12-28 Thread Jani Tiainen
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... -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Building a framework

2018-12-29 Thread Jani Tiainen
inal Year Project for an under-graduate level student? Or > there is another choice that what If I just download or forked the source > code of Django or Flask or other simple framework and first understand and > then making changes in that framework and customize that. What about this

Re: Show locations on maps on realtime sent from ios app django as a backend.

2019-01-03 Thread Jani Tiainen
Hi. Where do you want to display this location information? Achyut Pandey kirjoitti to 3. tammik. 2019 klo 16.36: > What are the possible ways to show the locations data sent from ios app to > django backend on maps. Please anyone respond i really need your help guys . > > -- > You received thi

Re: ms sql server connectivity to django

2019-01-07 Thread Jani Tiainen
nd 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/msgid/django-users/ee503251-d646-4585-b773-0b1fc5b11c66%40googlegroups.com > <https://groups.google.com/d

Re: Django keeps crashing

2019-07-26 Thread Jani Tiainen
Hi. Unfortunately it is you. Withouth full source code it's hard to help. Error indicates that you may have a typo in your settings.py. If possible put up your project in github for example and join #django irc channel on freenode. You get help in no time. Also as you being beginner Django Girl

Re: Overriding methods in models of other developers

2019-07-27 Thread Jani Tiainen
You can do that with proxy models which allows you to override and add methods. Of course if there is a need to really modify original model it gets tricky. la 27. heinäk. 2019 klo 10.49 אורי kirjoitti: > Hi, > > I had to change the following lines because tests failed: > > class Friend1(objec

Re: forms.Form with class in html-rendering

2019-07-28 Thread Jani Tiainen
Hi. Be aware that pushing rendering data like styles to form code has a nasty drawback. If you want to change that it is code change. And at some point it will get burden to maintain styles in code. There are few options still. Recent versions of django renders widgets using templates. Use that.

Re:

2019-07-29 Thread Jani Tiainen
Hi. TL; DR; you can't. You though can upload multiple files just fine you just need to handle them manually. Also if you plan to keep files around your models must enable that. ma 29. heinäk. 2019 klo 15.48 Suraj Thapa FC kirjoitti: > How can I create a file field which one can upload Multip

Re:

2019-07-29 Thread Jani Tiainen
. heinäk. 2019 klo 18.22 Aldian Fazrihady kirjoitti: > Multiple file uploads already there for many years. The link I shared > above show you how to do that the Django way. > > Regards, > > Aldian Fazrihady > http://aldianfazrihady.com > > On Mon, 29 Jul 2019, 21:52 Ja

Re: database migrations

2019-08-03 Thread Jani Tiainen
Hi. So... what is the actual question? pe 2. elok. 2019 klo 15.40 Perceval Maturure kirjoitti: > Dear all > creating a new database as applications increase has been one of the > solutions to some of the errors i have encountered especially after adding > a django cms by hand in my development

Re: database migrations

2019-08-04 Thread Jani Tiainen
Hi. To me this sounds more debugging issue than migrations or database problem. Since it is most definitely your code that doesn't work right. Of course if youre building and testing features that fill thousands of entries or relatively complex data there are options. Personally I use "template

Re: Django parameters

2019-08-12 Thread Jani Tiainen
Hi. Yes and no. Django isn't cms but web application development library written in python. So yes you can do all those things. How much work and effort it requires depends on many factors. ma 12. elok. 2019 klo 14.13 tomas mracnik kirjoitti: > Hi, we are considering a new cms system in our

Re: Storing credentials in the DB

2019-08-12 Thread Jani Tiainen
Unfortunately storing password in db has a fundamental flaw. To be able to use to access any remote source it has to be in usable form. Wether digested or plain text form it doesn't matter since at the moment you use it to login other resource it is in plain format (whatever format that is). ma 1

Re: Postgres along with Mongodb

2019-08-12 Thread Jani Tiainen
Hi. Yes you can. Of course since mongodb isn't relational database you get best experience by using native python api to mongodb and Django orm for postgres. ma 12. elok. 2019 klo 15.57 Suraj Thapa FC kirjoitti: > How can I use postgres along with Mongodb > Different table different db > > --

Re: Best DRF Cheatsheet?

2019-08-21 Thread Jani Tiainen
Hi. Wouldn't it be much better to improve DRF documentation itself rather than create yet an another documentation that you have to maintain? ke 21. elok. 2019 klo 19.58 Charles Thayer kirjoitti: > I've been using Django with DRF off and on for probably over 5 years now. > There are still parts

Re: How to customize admin page rendering?

2019-08-25 Thread Jani Tiainen
Hi. Instead of trying that I suggest that you build your own managenent console where you can do all you want to. Admin is a great tool but it can't replace proper management tools. Mainly because admin isn't built for much of customization beyond what you can find from the docs. su 25. elok. 20

Re: Database Views

2019-08-27 Thread Jani Tiainen
Hi. You really need to provide more context. Without knowing your data, tables involved in a view. Your model and query you used and query you used to verify wrong (or correct) results it is virtually impossible to help you further. ti 27. elok. 2019 klo 17.47 HULUGESH B kirjoitti: > Hi All, >

Re: Django real-time chat app

2019-08-27 Thread Jani Tiainen
Hi. Greatly depends on your definition of real-time... ti 27. elok. 2019 klo 8.01 Suraj Thapa FC kirjoitti: > Anyone have real-time pluggable chat system app in django. > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe fr

Re: How to find out when a fix will be released

2019-08-27 Thread Jani Tiainen
It's not weird at all. Django has 8 month release cycle. Usually only bugs that are security issues or causes data loss are backported to older releases. I think this procedure is documented somewhere... ke 28. elok. 2019 klo 8.06 wd kirjoitti: > It's so weird, the code is already in master 7 m

Re: How to find out when a fix will be released

2019-08-27 Thread Jani Tiainen
Oh yes there it is explained in depth https://docs.djangoproject.com/en/dev/internals/release-process/#supported-versions ke 28. elok. 2019 klo 8.12 Jani Tiainen kirjoitti: > It's not weird at all. Django has 8 month release cycle. Usually only bugs > that are security issues or

Re: Unsynchronized sequence

2019-08-30 Thread Jani Tiainen
Hi. You really need to give more context than that. What you exactly did? What you expected to happen? What was the actual outcome? Preferably with all commands and code you used with responses you got. ke 28. elok. 2019 klo 16.49 Ezequias Rocha kirjoitti: > Hello everyone > > I am using djang

Re: styling tables in django

2019-09-01 Thread Jani Tiainen
Hi. Templates are just a text and very common thing is to render templates as html. So there is no magic involved what comes to styling. It is just CSS which would make your tables styled. And that is beyond Django. If you want to use CSS file as included as a link in html header part there exis

Re: Python +django

2019-09-08 Thread Jani Tiainen
Hi. You're on good track. Using Django doesn't require much but knowing Python, HTML and CSS surely helps. Django Girls do have excellent tutorial to get you kickstarted with Django. CSS can be easily handled with libs like bootstrap or material ui. What comes to programmin itself it takes a g

Re:

2019-09-10 Thread Jani Tiainen
Please paste your errors as plain text. Images are really hard to read in mobile devices and searching image for keywords is really impossible. ti 10. syysk. 2019 klo 23.36 Duncan Jerry kirjoitti: > you should post images of the errors you are getting so that its easy for > us to figure out a s

Re: Maps API

2019-09-12 Thread Jani Tiainen
Hi. I had workshop about geotracking and Django at Djangocon eu 2019. You can find my material at http://dceu2019.tiainen.cc to 12. syysk. 2019 klo 17.33 Aniket Jain kirjoitti: > Hello guys, > Hey anyone is having idea that which API we can use for the grps tracking > system for the vechiles l

Re: ORM

2019-09-12 Thread Jani Tiainen
Hi. There exists django-extensions package that has management command to make UML diagram for your models. pe 13. syysk. 2019 klo 5.22 Yann Mbella kirjoitti: > Got little problem is it possible to have a plugin which mapps or > reproduce my class diagrams drawn in an IDE of UML in my models a

Re: Django Post request erro

2019-09-13 Thread Jani Tiainen
Hi. Could you describe exactly in both cases: What do you expect to happen? What does actually happen! Also instead of using hardcoded urls you should always use {% url %} tag to form urls in templates. pe 13. syysk. 2019 klo 16.53 Ruturaj Singare kirjoitti: > Hi Everyone I got one problem I h

Re: ORM

2019-09-17 Thread Jani Tiainen
it : > >> Thanx for the information >> >> Le ven. 13 sept. 2019 à 06:24, Jani Tiainen a écrit : >> >>> Hi. >>> >>> There exists django-extensions package that has management command to >>> make UML diagram for your models. >>&

Re: queryser variable from template to a view

2019-09-18 Thread Jani Tiainen
Hi. to the rescue! Also it is recommended to use {% url %} tag to construct urls not to hardcode them and once were there Django convention is to end urls to slash. ke 18. syysk. 2019 klo 15.53 Luca Bertolotti kirjoitti: > Hello i need to pass a query set from template to a view: > > > > in

Re:

2019-09-18 Thread Jani Tiainen
Hi. Technically that is impossible. Group by is used to make sql aggregate to know aggregation criteria. Let's take simple example: Let's have table with columns name, job and salary. Rows in table would be: Jani,programmer,100 Ahmmed,programmer,100 Now lets calculate average salary of progr

Re: queryser variable from template to a view

2019-09-18 Thread Jani Tiainen
: > Hello > if i pass > and in the view i do this > > def exmple(request,myvar): > sort = myvar.order_by() > i get an error because myvar is a string instead i near a query set > > Luca > > Il giorno mercoledì 18 settembre 2019 15:56:19 UTC+2, Ja

Re: Transaction.atomic()

2019-09-23 Thread Jani Tiainen
And TL;DR; versio. Code which is wrapped within atomic transaction will guarantee that if code breaks changes are rolled back. ma 23. syysk. 2019 klo 15.42 Aryan Patel kirjoitti: > Hi colleagues, > > I want to understand if transaction.atomic() in django guarantees that the > client is getting

Re: list records of another app in another app

2019-09-24 Thread Jani Tiainen
Hi. Just import models and use them? ti 24. syysk. 2019 klo 22.10 Perceval Maturure kirjoitti: > > Hi awesome django users > i want to list model records of App1 in a detail view of App2 > any ideas? > Regards > > -- > *Perceval Maturure* > > *083 303 9423* > > -- > You received this message b

Re: Template linting

2019-09-28 Thread Jani Tiainen
Hi. It could be intetesting thing to play with for example pyparsing-library. But to my knoledge there is (not yet) such a linting tool. la 28. syysk. 2019 klo 17.00 Tobias Bengfort kirjoitti: > Hi, > > I was wondering whether there are any good options for linting HTML > templates. I have se

Re: MongoDB Connect with Django

2019-09-29 Thread Jani Tiainen
Hi. Personally I even would try to use any special backend that tries to map non-relational database with tool (ORM) that is meant for relational database. You can connect to mongodb just fine with plain python connector and read data from there. You don't need anything magical for it. Of course

Re: Django 2.2.6 fails to serve some static files in Windows 10

2019-10-04 Thread Jani Tiainen
Hi. It seems that you have mixed some concepts here. First you rarely need to manually serve static files in development. Django takes care of that when using runserver. STATIC_ROOT is location where static files are collected when you run collectstatic management command. And that command you u

Re: Django 2.2.6 fails to serve some static files in Windows 10

2019-10-04 Thread Jani Tiainen
Also you never put STATIC_ROOT to STATICFILES_DIRS. Because then you would with collectstatic command copy STATICFILES_DIRS to STATIC_ROOT... ke 2. lokak. 2019 klo 19.07 red sky kirjoitti: > My system: Windows 10 1903. Python 3.7.4, 64 bit. > > My directory structure: > %USERPROFILE%/Desktop/m

Re: compsite key

2019-10-04 Thread Jani Tiainen
Hi. Django doesn't support composite keys. pe 4. lokak. 2019 klo 14.47 narendra thapa kirjoitti: > as i was trying to make a composite key on students model . i wanna make > composite key of field enrolled year and roll no but django is not > accepting a two primary key in same model > > -- >

Re: for loop template

2019-10-04 Thread Jani Tiainen
Counter0 only exists for variables declared within template itself for for loops. Lista isn't for loop variable and thus it's always empty. pe 4. lokak. 2019 klo 17.53 Luca Bertolotti kirjoitti: > from the view i give to the template the following variables > > selezione = Dbasedett.objects.fil

Re: How to generate a unique 9 digit random id for every registered user?

2019-10-04 Thread Jani Tiainen
Note that above solution doesn't guarantee unique id. As it is a problem of any pseudorandom generator. So it is possible (but unlikely) that insertion fails. pe 4. lokak. 2019 klo 18.12 Aldian Fazrihady kirjoitti: > import random > import string > > from django.db import models > > > def gener

Re: ListView from 2 model

2019-10-08 Thread Jani Tiainen
Hi, ListView and most other generic views are designed mostly to work with single model. There are few ways to tackle your problem depending on your needs. to 3. lokak. 2019 klo 0.53 Yann Mbella kirjoitti: > hi everyone, > I got a problem in listing two models from a listview that is, a list

Re: Why and when I should override the default AdminSite

2019-10-09 Thread Jani Tiainen
Hi. I've been working with Django about 10 years and yet I haven't need for overriding admin. Admin is great tool for CRUD while developing but I wouldn't push it too far. Specially trying to put any business logic in admin doesn't go well in the long run. And it's really easy to build proper ma

Re: University management system

2019-10-09 Thread Jani Tiainen
Hi. How realistic, given your requirements, you think you as a developer can implement all that in one week? Ok, lets break this down a bit. Requirement 1 hierarchical users. This is rather trivial to do if you don't need fancy ui but can rely on admin facilities. Requirement 2 blogging. If you

Re: CSS not working

2019-10-10 Thread Jani Tiainen
Hi. You could try to diagnose issue with findstatic management command: ./manage.py findstatic -v 3 polls/style.css You should get a list of paths Django tried to look for your static file (stylesheet) and of course was it found. pe 11. lokak. 2019 klo 6.19 yasar arafath Kajamydeen kirjoitti:

Re: CSS not working

2019-10-11 Thread Jani Tiainen
tic > C:\Users\kajamydeenya\telusko\polls\static > > C:\Users\kajamydeenya\telusko\mypython\lib\site-packages\django\contrib\admin\st > > > > > *Regards,* > *Yasar Arafath K* > > On Friday, October 11, 2019 at 12:30:19 PM UTC+8, Jani Tiainen wrote: >> >> Hi.

Re: Auto assigning 2 types of user roles on sign up

2019-10-23 Thread Jani Tiainen
Hi. Personally I would do it as follows: On invitation create invited user account at least with email and with member role. Make account disabled. You might also add invitation key which you can put in email and check as well. When invited user starts sign up procedure you can just fill in the

Re: django.contrib.gis for Windows 10

2019-10-30 Thread Jani Tiainen
Hi. First postgis should bring all necessary libs since it uses very same geospatial libs as osgeo. Very important thing is to make sure that if you have 32bit libs you use 32bit python and same with 64bits. You just can't mix libs with different bit sizes. In linux this is much easier since it

Re: Django leaflet

2019-10-30 Thread Jani Tiainen
Also I did workshop on last DjangoCon EU where I used leaflet without additional magic. You can find short docs and code at http://dceu2019.tiainen.cc su 27. lokak. 2019 klo 2.42 Perceval Maturure kirjoitti: > > Hi all > How do u wire your template and view to display maps in Django leaflet > >

Django jobs available

2019-11-17 Thread Jani Tiainen
are looking for. We offer this full-time permanent position in our offices in Joensuu, Finland. Job starts as agreed. Send your application to *care...@keypro.fi * -- Jani Tiainen Technical Team Lead Keypro Oy -- You received this message because you are subscribed to the Google Groups

Re: Django jobs available

2019-11-18 Thread Jani Tiainen
Send your application and our recruitees will check it out. ma 18. marrask. 2019 klo 15.06 Mohammad yunus kirjoitti: > What if I am Freshers? > > On Mon, 18 Nov 2019, 1:25 pm Jani Tiainen, wrote: > >> >> If you are an experienced software developer looking for new chall

Customer specific translations

2019-11-25 Thread Jani Tiainen
route". Some "route" and some just "delivery route". Any ideas how to handle this? -- 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 subscribed t

<    3   4   5   6   7   8