Java Husky 🇬🇧🇺🇸
प्रो
प्रो
But Python isn't snake afaik
Anonymous
I guess snakefood 😂
I still don't understand that
Ghazwan
Hello inchidi, shirtless, David and everyone :)
Anonymous
Django Bot
>> Jobs - Full-stack Developer
Anonymous
Anonymous
Java Husky 🇬🇧🇺🇸
XD
Anonymous
lol
Anonymous
python and django on windows is a truly pain
Java Husky 🇬🇧🇺🇸
python and django on windows is a truly pain
Would it be far easier on Ubuntu?
Siddharth
Siddharth
/stat@combot
Combot
combot.org/chat/-1001146340312
Anonymous
yup
Java Husky 🇬🇧🇺🇸
Ughhhh, Okies xD
Anonymous
try that and then install python virtualenv ;)
Ghazwan
it's programmers' heaven
Anonymous
Java Husky 🇬🇧🇺🇸
Because everyone has their own opinions and that's okay
Anonymous
that's not the point, I was curious
Ghazwan
https://www.djangoproject.com/weblog/2017/sep/22/django-20-alpha-1-released/
Ghazwan
Django 2.0 alpha is out
Oleg
Hello! I can create my web-application with self authorization to it on Django?
inchidi
wondering why django.contrib.auth.login etc will be removed on 2.1
Essa
Weird why would they?
Essa
A quick looking in here https://code.djangoproject.com/query?status=assigned&status=new&component=contrib.auth&col=id&col=summary&col=status&col=owner&col=type&col=component&col=version&desc=1&order=id Couldn’t find anything
Essa
Thanks
Essa
Apparently it’s just for in favor of class based views
Anonymous
hello
Anonymous
hi
Anonymous
hello guys I really need help
Anonymous
I need to add css code to django forms but when I google I find that this possible only with bootstrap , how can I do it from scratch
Anonymous
here is the code
Anonymous
views.py : def login_view(request): form=LoginForm(request.POST or None) btn='login' if form.is_valid(): username=form.cleaned_data['username'] password=form.cleaned_data['password'] user=authenticate(username=username,password=password) login(request,user) # message.success(request,'Welcome') return HttpResponseRedirect('/admin') context={ 'form':form, 'submit_btn':btn, } return render(request,'login.html',context) this is the template login.html : {% load staticfiles %} <form method='POST' action=''>{% csrf_token %} {{ form.as_table }} <input type='submit' value='{% if submit_btn %}{{ submit_btn }}{% else %}Submit{% endif %}' class='btn btn-default' /> </form>
Anonymous
how do I set a class or ID for the username, password , to provide an external style sheet to???
Anonymous
Use hastebin
Anonymous
And yes, you can add CSS code to django forms
Anonymous
Just create a css file for that form and then link it to html.
Anonymous
And in forms.py, add class attribute to your form field
Siddharth
Guys.. any basic course on Django??
Anonymous
google.com
Siddharth
Course.. not source
Anonymous
Video?
Siddharth
Ya.. like from basics to intermediate
Anonymous
https://www.quora.com/What-are-the-best-online-django-courses-for-beginners
Anonymous
I hope this helps
Anonymous
For book there is
Anonymous
djangobook.com
Group Butler
Guys.. any basic course on Django??
New to Django? here is some resource to start Official docs tutorial Step by step tutorial Video tutorial Another video tutorial Books Django by Example Tango With Django
inchidi
if yes then the easiest way is not using {{ form.as_table }} since your form fields not gonna change
Anonymous
As I said just add class attrib in forms.
inchidi
Anonymous
Huh?
inchidi
As I said just add class attrib in forms.
its not flexible for the frontend tho
Anonymous
Why not it's only a class name
inchidi
Huh?
why its gonna change? he gonna add some fields to that form?
Anonymous
Well I was talking about more general case
inchidi
Why not it's only a class name
yeah, but still if its build in form overriding it just to add class attribute is not a good choices imo
inchidi
Well I was talking about more general case
hmm, okay i was talking about LoginForm from django
Django Bot
>> Blogs - How to Create Django Data Migrations - A Complete Beginner's Guide to Django - Part 4
Anonymous
Hi
Anonymous
How use angular with Django
Django Bot
>> Blogs - Numbers in Translatable Strings
Ghazwan
How use angular with Django
http://djangular.readthedocs.io/en/latest/
Anonymous
You wot
Ghazwan
Djangular is set of ready to use tools to make Django and angular together
Ghazwan
if you do that on your own, you will have to separate them, i mean angular and django, and serve data to angular using REST API