cj
does not work
show code instead of ant size screenshot
Kamran
https://github.com/devkamx/Academstar_backend?files=1
Kamran
two weeks as I learn , sorry 😐
Anders (izzno / gooood) 🇳🇴
I think you accidentally messed up your settings file.
Anders (izzno / gooood) 🇳🇴
Use a ide with a linter (like vscode)
Anders (izzno / gooood) 🇳🇴
And paste the full error somewhere
Ghorz
Missing os import
Syed Jafer
Use import os
Kamran
❤️
Software engineer
Guys can you share some books for django beginner
Neo
do you have reference for intermediate or advanced
Neo
I already read most of the references pinned
inchidi
do you have reference for intermediate or advanced
then i guess the rest depends on technology you need, for example: https://t.me/django/9763
.
Docteur MikeS, [08.01.19 08:27] Good morning everybody. I need help in django. How to write the link bellow in static quotes please: css/5grid/init.js?use=mobile,desktop,1000px&mobileUI=1&mobileUI.theme=none&mobileUI_titleBarOverlaid=1&mobileUI_titleBarHeight=60&viewport_is1000px=1060&mobileUI_openerWidth=80. I tried the normal procedure but the function is not loaded. Please help me
.
Docteur MikeS, [08.01.19 08:28] i ve tride {% static 'css/5grid/init.js?use=mobile,desktop,1000px&mobileUI=1&mobileUI.theme=none&mobileUI_titleBarOverlaid=1&mobileUI_titleBarHeight=60&viewport_is1000px=1060&mobileUI_openerWidth=80' %} but it is not working. Info: i ve load statics already
inchidi
Docteur MikeS, [08.01.19 08:28] i ve tride {% static 'css/5grid/init.js?use=mobile,desktop,1000px&mobileUI=1&mobileUI.theme=none&mobileUI_titleBarOverlaid=1&mobileUI_titleBarHeight=60&viewport_is1000px=1060&mobileUI_openerWidth=80' %} but it is not working. Info: i ve load statics already
do this instead {% static 'css/5grid/init.js' %}?use=mobile,desktop,1000px&mobileUI=1&mobileUI.theme=none&mobileUI_titleBarOverlaid=1&mobileUI_titleBarHeight=60&viewport_is1000px=1060&mobileUI_openerWidth=80
Dmitry
Hello, guys! I have a question about installing apps: Assume I have launched my pipenv install someapp, ran my pipenv shell, and started a django project. Do I have to have my app folder already downloaded manually to run it, or it is “in the background” when I did pipenv install someapp? If that didnt make sense, well, I am trying to run this https://shuup.readthedocs.io/en/latest/howto/getting_started.html#requirements
Anonymous
is this about django?
Dmitry
is this about django?
Absolutely! This thing runs on Django. However, my question refers to Django apps overall
Anonymous
don't know the working behind the scenes.
Dmitry
don't know the working behind the scenes.
Lets just say that in order to install an app into django project do you have to have an app folder in the project?
Xyz
It's the same reason you don't need to have django folder in your project directory before running django-admin start-project **
Anonymous
@ddbelyaev by install app do you mean the app which is installed inside django projects?
Neo
then i guess the rest depends on technology you need, for example: https://t.me/django/9763
can i habe some sample projects available on git to deeply understand djando
inchidi
can i habe some sample projects available on git to deeply understand djando
https://bitbucket.org/schinckel/django-boardinghouse/
Anonymous
https://bitbucket.org/schinckel/django-boardinghouse/
do you recommend any personal favourite blogs for intermediate django?
inchidi
do you recommend any personal favourite blogs for intermediate django?
hmm i dont have one since i can find everything i need to know about django from the docs
inchidi
but if you are looking for something you might dont know yet, try read articles for fullstack web instead specific django
inchidi
reading about "how things work" always better than "how to use it"
Anonymous
Kaio
Hi guys! A little help here... I'm trying to create a chart showing my user growth curve So I got this query: User.objects.annotate(day=TruncDay('date_joined')).values('day').annotate(users=Count('pk')).values('day', 'users') The problem is that I'm getting the number of new users by day.. I'd like to get the total of users day after day... 😄
Kaio
I appreciate any help
Anonymous
can you add little more explanation like the working of your app..??
Kaio
counting the total number of users by day
Anonymous
cumulative sum per day or just the number of users joined per day???
Kaio
cumulative sum per day
Anonymous
so Now may i know what difficulty you are facing ??
Kaio
I don't know how to get the cumulative number.. only the number of users joined per day.. 😕
Anonymous
jus take the number of users , total number of users will be the cumulative number ..
Luis
Not sure, but using aggregate or annotate function may help
Luis
I don't know how to get the cumulative number.. only the number of users joined per day.. 😕
It returns a dict counting joined user by date. You can use it to get cumulative by hand from django.contrib.auth.models import User from django.db.models.functions import Trunc User.objects.values(joined=Trunc('date_joined', 'day')).annotate(count=Count('joined'))
Luis
<QuerySet [{'joined': datetime.datetime(2018, 11, 1, 0, 0), 'count': 77}, {'joined': datetime.datetime(2018, 11, 2, 0, 0), 'count': 74}, '...(remaining elements truncated)...']>
Luis
Hope it helps!
Kaio
Thanks @LuchoUY
Luis
👍🏾
Lapanit ☃️
shall we ban the virus?
Luis
hahaha
Aminu Saminu Khamees
shall we ban the virus?
I'm not virus, just a username... lol
cj
I'm not virus, just a username... lol
I can't trust someone that says that
Aminu Saminu Khamees
U think I'm robot?
Anonymous
We are sure u are robot
Anonymous
Please stop portscanning my ip
Anonymous
I have an old drupal on port 8081 you are fingerprinting for drupalgeddon
Aminu Saminu Khamees
We are sure u are robot
Hahhh, let's dig into Django
Anonymous
Is a windows xp dont worry
Aminu Saminu Khamees
I have an old drupal on port 8081 you are fingerprinting for drupalgeddon
Lol do I have to introduce myself cox my admin is still nt compot wit me
Lapanit ☃️
Hahhh, let's dig into Django
oh wait, I remember you, you had other name, kid asking for python stuff, yeah
Anonymous
@Lapanit is your image took from a tarot illustration? /ot
Anonymous
Seems one of the old italian tarot painting..
Aminu Saminu Khamees
oh wait, I remember you, you had other name, kid asking for python stuff, yeah
Yeah, wit ur recommendations I'm not using python for almost all my project, thanks for that Bro, surely u re a good mentor
Lapanit ☃️
Yeah, wit ur recommendations I'm not using python for almost all my project, thanks for that Bro, surely u re a good mentor
not my fault you're lazy, you wanted everything chopped and in the mouth, also we aint mentors, we are group admins
Lapanit ☃️
:/
Aminu Saminu Khamees
:/
Typin error
Anonymous
Lol