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 ?
inchidi
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
karry
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... ?
inchidi
Anonymous
Yes, i want when i input a number to field and click go , i will go to a page according number....
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
Anonymous
checkout their guides
Anonymous
It's easy
Anonymous
and regarding github api
Anonymous
i don't know much
Anonymous
search for flask examples or guide
Val
Django Bot
>> Blogs
- Django Anti-Patterns: Signals
Abhi
do anyone know how to automatically post/tweet after the user has signed up ?
inchidi
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
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
karry
Any one in a -hacking channel pls add me
Abhi
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
try this for your views.py
from django.shortcuts import render
def index(request):
return render(request, 'index.html')
Val
thanks
Val
inchidi
Val
that is the error i got
inchidi
can you ss your directory structure?
Val
inchidi
inchidi
Val
inchidi
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'),
],
Val
inchidi
and add new var
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
at settings.py
inchidi
Val
Val