R
Yes, was considering ansible as an option but haven't used it
Daniel
you can find playbooks on GitHub of people deploying Django via ansible
Daniel
there's even examples with aws ec2
R
Will take a look more in deep to Ansible, anyways any other suggestion such as docker would be welcome
Daniel
of course docker is a good choice
Daniel
you can orchestrate containers with Ansible too
Daniel
look through the modules and pick your poison
Daniel
😄
Daniel
it's a very powerful tool
R
Will check it out, thanks!
Django Bot
>> Links - jazzband/django-silk: Silky smooth profiling for Django
Django Bot
>> Blogs - Creating Dynamic Forms with Django
inchidi
https://www.reddit.com/r/forhire/comments/8hl3rz/hiring_online_python_web_app_developers_django/
Anonymous
Any freelancing projects ?
Django Bot
>> Links - pydanny/cookiecutter-django: Cookiecutter Django is a framework for jumpsta - How to manage concurrency in Django models – Haki Benita – Medium - Quickstart: Compose and Django | Docker Documentation - Staging Django for Production & Local Development - Creating Dynamic Forms with Django - Django-to-do: A simple Django to do web app
mλdcodez
'django.contrib.auth.views.login', What's alternative in django 2.x
mλdcodez
'django.contrib.auth.views.login', What's alternative in django 2.x
Solution: from django.contrib.auth import views as auth_views ... urlspatterns = [ path('login', auth_views.LoginView.as_view(template_name='login.html'), name = 'login') ]
Audacious Tux
anyone worked with graphql + django?
Audacious Tux
not me.
#sed_laif
mλdcodez
Audacious Tux
?
sad life... can't find enough resource for graphene :')
mλdcodez
sad life... can't find enough resource for graphene :')
wait. I'll check for some links :) Be Happy
mλdcodez
thanks ♥
https://media.readthedocs.org/pdf/graphene-python/stable/graphene-python.pdf
Audacious Tux
read those... but can't find example code... like how do you send field type information to client, how to clean data etc
mλdcodez
Audacious Tux
umm... seen them too.. maybe I'm missing something... have to research a bit more... thanks ♥
mλdcodez
Take a walk them come back. You'll have a better perspective
Django Bot
>> Jobs - Senior Python Django Developer >> Links - ambitioninc/django-query-builder: Build complex queries for Django - mattiaslinnap/django-partial-index: PostgreSQL and SQLite partial index sup - SectorLabs/django-postgres-extra: Bringing all of PostgreSQL's awesomeness - Using Django 2 with Celery and SQS – Mark Gituma – Medium - discolabs/django-shopify-auth: A package for adding Shopify authentication - Simple Django Deploy - The simplest API in Django - Dockerizing Django for Development - Fernando Alves - Django REST framework - Controlling access: a Django permission apps comparison – Vinta Software
Audacious Tux
is it good to have excerpt field on model? any better way to get only limited charceters from huge textfield like a blog post without giving database extra stress?
Django Bot
>> Links - Django REST Frameworkでユーザ認証周りのAPIを作る - Qiita
Daniel
>> Links - Django REST Frameworkでユーザ認証周りのAPIを作る - Qiita
holy shit, I understand everything that's written in there
Daniel
it's good at least that the code is self documented
David
In practice, what do you recommend for django: functions based views, or class based?
R
Class based of course
Anonymous
There was a topic regarding it in two scoop of django. And it said use function based views for only few cases
R
https://ccbv.co.uk this might be useful if you don't know it
David
Well, I was doing a website with function based views, and it started to get fuzzy as the requirements increased. So, that raised my question 😅
R
Well, I was doing a website with function based views, and it started to get fuzzy as the requirements increased. So, that raised my question 😅
Yes, that' what cbv solves. You even have mixins such as PermissionRequiredMixin which can make some tasks really easy and reusable
Anonymous
hii
Anonymous
all
Anonymous
hav3 anyone here can develop a psn checker
Anonymous
plz msg me
Django Bot
>> Links - djangosnippets: ModelChoiceField & ModelMultipleChoiceField with optgroups
Mi
Any experience with django rest and vue.js?
Charly
Yep
Mi
And are you happy?
Mi
I was trying to decide between django rest and express
Mi
I'm more happy with python for backend
Mi
But I'm also using Javascript for frontend
Mi
Happier, I meant 🙄
Mi
Maybe not so many people use that combination
Django Bot
>> Links - davit-gh/ecommerce: A modern e-commerce website based on Django and Mezzani
Charly
And are you happy?
i'm ok with that, django isn't my favorite way to do web services, but I'm feel very confortable in my daily job
Charly
TBH it dosen't matter what you choose, if you feel good with that, there aren't limitiations by language/framework other than resource consumption which in most cases is an acceptable price
Mi
What's your favorite way to do web services? Just curious
Charly
go with standard library (mostly)
Mi
Never tried go
Mi
Do you use it with an ORM?
Charly
nope
inchidi
Any experience with django rest and vue.js?
its combo i use. i think vuejs pretty straight forward but for django frontend, any js framework doesnt matter tho
Mi
Thanks a lot!
mλdcodez
need help, how can i redirect user to some url if user is already logged in and tries to open login url
mλdcodez
Use redirect function
Where. In login view?
mλdcodez
And, do I need @login_required
Anonymous
Where. In login view?
Depends actually
mλdcodez
Oh.