inchidi
because heroku free limitation run time, my polling gonna be stopped. but when we start talking here, webhook trigger my bot to wake up and do the polling again
inchidi
am not expert on this, but polling is doing work continuously and webhook is waiting before work
Abhi
but in this cases we can say that our server stopped for some time ?
Abhi
webhook will work if our server will be continuously running
Abhi
otherwise we might feel some lags
inchidi
i think when tg tell heroku this group has new message then our server turned on
inchidi
i never check if that event processed or not
Abhi
that is complex inside
inchidi
yeah, and am not really good at devops
Kreante
hi
Lapanit ☃️
Herro
Anonymous
Hi
Lapanit ☃️
Hi
Hi, no, I dont know any Java groups or Spring, sorry
Django Bot
>> Blogs - Caktus at DjangoCon2017
inchidi
anyone used django social share ?
technically this is meta question, but if you want to know certain django package popularity you can look at this web https://djangopackages.org/packages/p/socialshare/
Django Bot
>> Jobs - Senior Backend Developer
Anonymous
Anyone know about jump to page with django... ?
Anonymous
Yes, i want when i input a number to field and click go , i will go to a page according number....
inchidi
Yes, i want when i input a number to field and click go , i will go to a page according number....
you can use Django paginator https://docs.djangoproject.com/en/1.11/topics/pagination/#using-paginator-in-a-view
inchidi
start from the views, you can think about the input page number field after the views done.
Anonymous
Thks i will try it...
Anonymous
Anyone ever create django user create ID with Linkedin user permission API,,?
Val
hello everyone , i have a school project i don't know where to begin. so i am asking for advice, directions, tutorials on how i can Ace this project..
Anonymous
this can be done without django
Anonymous
I would suggest flask for it
Val
any assistant in this project will appreciative
Val
I would suggest flask for it
i don't know how to use flask yet
Anonymous
checkout their guides
Anonymous
It's easy
Anonymous
and regarding github api
Anonymous
i don't know much
Val
and regarding github api
alright do you have any tutorials on that or a link or something
Anonymous
search for flask examples or guide
Val
search for flask examples or guide
okay thanks doing it now
Django Bot
>> Blogs - Django Anti-Patterns: Signals
Abhi
do anyone know how to automatically post/tweet after the user has signed up ?
inchidi
do anyone know how to automatically post/tweet after the user has signed up ?
how about https://code.google.com/archive/p/python-twitter/ ?
inchidi
if you are using social auth for registration and your dev.twitter.com/apps have valid permission, it will be automatic (twitter only ask permission from user when registration)
Anonymous
Maybe version of python not compatiable
Anonymous
i used django 1.11.2 version
inchidi
i used django 1.11.2 version
pattern deprecated since 1.8. share your urls.py here
Anonymous
hey
Anonymous
can anyone tell me how to use custom serializer in django
Anonymous
how to register it in settings
Anonymous
like I want to use ujson
Anonymous
how can I set to it
Anonymous
pattern deprecated since 1.8. share your urls.py here
Yess,, apparently tutorialspoint got obsolete tutors 😂,, nOw i g0t thi$ —> TypeError: view must be a callable or a list/tuple in the case of include().
karry
Any one in a -hacking channel pls add me
Val
please how can i create a search form on my django
Val
i want the search form in my index.html to link to my application.py
Val
i keep getting Template does not exist each time i refresh the page
Val
the first image is for the view.py while the second image is for index.html
Val
i created a directory in the application.py called templates also in that template directory i created a subdirectory called applications and in this applications i created a index.html file... please what am i doing wrong??
inchidi
like I want to use ujson
you can just pass the json from views. data_user = User.objects.values('id','email','username','first_name') data = ujson.dumps(list(data_user)) return render(request, 'user-list.html', {'data': data}) will this works?
inchidi
i am using django-social auth
yeah then you can use python-twitter for share after register
inchidi
try this for your views.py from django.shortcuts import render def index(request): return render(request, 'index.html')
Val
thanks
inchidi
Val
that is the error i got
inchidi
can you ss your directory structure?
Val
same error?
is there any need for a database?
inchidi
is there any need for a database?
from your code, no need
inchidi
try this for your views.py from django.shortcuts import render def index(request): return render(request, 'index.html')
edit return render(request, 'index.html') to return render(request, 'application/index.html')
Val
from your code, no need
that's the screen shot
inchidi
edit return render(request, 'index.html') to return render(request, 'application/index.html')
Valentine if this one still not working check your TEMPLATES value at settings.py
Val
that is my template value at setting.py could that be the problem?
inchidi
set the DIRS key to this 'DIRS': [ os.path.join(BASE_DIR, 'application/templates'), ],
inchidi
and add new var BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) at settings.py
inchidi
where sud i add this?
top of settings.py after import os would be great