Anonymous
ok
Anders (izzno / gooood) 🇳🇴
And you are aware of bootstrap right ? (does not help with the logic but the droppdowns etc...)
Anonymous
yeah...
Anonymous
can you share any examples of webshop or oscar
Anders (izzno / gooood) 🇳🇴
oscar has a sandboxed example in their git repo
Anders (izzno / gooood) 🇳🇴
it also has an api, which you can use....
Anders (izzno / gooood) 🇳🇴
I was also thinking you might want to change cat2&3 to a many to many (or at least one of them) if unless you are sure one thing can never be in to categories at once.
Anders (izzno / gooood) 🇳🇴
like EVER, in the future
Anonymous
ok..
Rajjix
I would have just used a model manager, and make queries that satisfy my needs then use those queries in my views, and since you’re using cb list views your query would appear as an object list in your template, so just for loop it or something, as anders said just a bit logic of what and where to show items, but to me model manager is key here.
Anders (izzno / gooood) 🇳🇴
If you search this group you will find a copy of Django 2 by example 😙... This will be helpfull
Googlom
which is best practice, absolute importing modules, e.g. from myapp.views import myview or relational import, e.g. from .views import myview?
Raad
I need help in SqlAlchemy, I have renters table that contain id, phone_number, and apartement_number. Now i have a variable that contain the apt number Like this num = 100 my qustion is how can I get the list of phone_number for people who live in apt 100? because i want to sent a text message to each one who live in that apt
Raad
I'm using Mysql
Djasur
Hi to everybody , guys I need ur help, how I can realize online trans from cameras in the classrooms to the website, with use Django
8 € ∆ $ "|"
guys
8 € ∆ $ "|"
my css file is not linking with php
Mirco
php ? wrong language
8 € ∆ $ "|"
<link rel="stylesheet" href="C:\xampp\htdocs\AVclub\new.css">
Mr. Rude
Relative to directory root
Mr. Rude
Don't add full path
8 € ∆ $ "|"
<link rel="stylesheet" href="C:\xampp\htdocs\AVclub\new.css">
all thingsare correct i don't know whats the problem
8 € ∆ $ "|"
Don't add full path
yes previously i was doing that didn't worked so i tried this
Mr. Rude
This is a wrong group to discuss tho
8 € ∆ $ "|"
i got i thanks
8 € ∆ $ "|"
👍
Mr. Rude
Working now?
Anonymous
How do I filter out 'icontains' tags? I'm using TAGGIT_CASE_INSENSITIVE = True in the settings.py file but it is not working. Returns empty queryset whenever it fires using lowercase letters.
Anonymous
in my models its tags = TaggableManager()
Anonymous
example
Anonymous
https://pastebin.com/dd6CL7bn
Mirco
https://pastebin.com/dd6CL7bn
Have u tried iexact ?
Anonymous
i tried now, and not work
inchidi
i tried now, and not work
using django Q() will be easier ig from django.db.models import Q q_obj = Q() for name in ['linux']: # iexact or icontains q_obj |= Q(tags__name__iexact=name) queryset = Post.objects.filter(q_obj)
Anonymous
I have another problem, I am using "UserCreationForm" to generate a form for user creation, however it is not saving the email, I went to the file and apparently it does not have the variable to receive and save the email. What can I do?
Anonymous
ps:I'm not studying everything completely, I'm just trying to create a blog, and when it's ready, I'll study everything completely and post the things I'm learning
Anonymous
code: https://pastebin.com/vMBg6y0j
Rajjix
Debug your code use print statements everywhere to get feedback in your console it helps a lot
Rajjix
but as a general tip make use of what django is offering, for instance here u can just do a create view and pass in the form, all will be handled, another tip would be cd in your env libs then django and check what the form or view or in general whatever you imported is actually doing to get a better idea and make fixes that work your way, yes and DO NOT play with source code, if there’s something you don’t like just override it
Rajjix
if you don’t try to understand how things works from the ground up details included, you’re always gonna have questions, sometimes even silly ones, this is just my personal advice and preference regardless of your mentioned problem. I thought i’d share because you were sending too many msgs 😁
Rajjix
print as debug: welcome 1998.
feel free to help him out with your 2018 skills 😊
Jimmies San
feel free to help him out with your 2018 skills 😊
there are a lot of debugger/logger [it depends]. cleaner code, better inspection.
Anonymous
good day
Anonymous
https://pastebin.com/ncJsW6nE
Anonymous
https://pastebin.com/ncJsW6nE
please kindly help debug this code when i try to verify email, the email sends but when i check GMAIL, NO MESSAGE WAS SENT
Anonymous
yeah its there in the pastebin
ʚɞÇherry Łoveʚɞ
As the name suggests the dummy backend does nothing with your messages
ʚɞÇherry Łoveʚɞ
i think so. just try with EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend’
Anonymous
oh, let me try
Anonymous
i think so. just try with EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend’
SMTPServerDisconnected at /account/signup/ Connection unexpectedly closed.
ʚɞÇherry Łoveʚɞ
Screenshot?
Rajjix
idk if is this even matters, but since your using gmail, try changing email host to ‘smtp.gmail.com’
Rajjix
With the backend cherry gave u
Anonymous
damn. its working, thanks guys @Rajjix and Cherry
Anonymous
Can someone help me with Allauth? I'm in the documentation but I do not know how to use it. It provides Views and Urls, but how do I modify the views and insert my own templates and stuff? Should I inherit from Allauth classes and then create urls for the application with the same url pattern as allauth?
Vidit
Hello i am vidit , i want to start django So what is the best source to do this,please tell me
Code9
You will need to declare that in URLs.py
Code9
Can you show the global URLs.py and the one for your app?
Code9
The tutorial will help. You will need to declare that after line 23
Aklog
Hey guys
Rohan
You know, there is an app for screenshots
Денис
prbly he's mobile only
Rohan
prbly he's mobile only
I can see youtube tab on his chrome screen playing django tutorial.
Anonymous
This book is good for learning Django?
Денис
This book is good for learning Django?
I personally prefer Django 2 by example
Денис
tango is kinda old
Anonymous
Ok, thanks
Rajjix
if i were to read a book i would read something about programming mindsets, some general useful knowledge that is worth your time, it takes you a week to learn django (at least grasp it’s workflow) which is basically 1 specific library of 1 specific language, read some docs some tutorials understand the flow and get going, but devoting your time for a full book on one specific topic such as django is not worth it in my opinion, because sooner or later you’ll find out that you’ll learn much more about django by doing not by reading.
Vidit
Thank you @rustem_b and @iFlare3G 👍
Mahesh
Guys anyone suggest me good backpack?