Mirco
You need to show data in a particular way so it's relative to presentation
Anonymous
Can someone advise the best way to show form error messages in django
Anonymous
I am not getting message in form but it showing on terminal
Anonymous
Yes I tried same
Anonymous
But not working , message is not showing in alert box
Anonymous
Please share if you have something
Anders (izzno / gooood) ๐ณ๐ด
Then your message/signal is not reaching to your template.
Anonymous
Yes seems this is the cause
Anders (izzno / gooood) ๐ณ๐ด
https://www.youtube.com/watch?v=UmljXZIypDc&list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p
Scan this tuto, it shows you how to use messages correctly.
Anonymous
Ok
Thanks @izznogooood
Anders (izzno / gooood) ๐ณ๐ด
Can anyone tell me or show me a link to a totu or documentation that lets me add some JS so a perticulare models create / update default ADMIN view. I need to add js to the admin view. But does not have to be the whole admin site...
Krishna Praneeth
Can anyone fix the error
I am getting 'bool object is not callable ' when i am trying to check whether the user is authenticated or not
Anders (izzno / gooood) ๐ณ๐ด
code...
Krishna Praneeth
*def form_valid(self.form):
* If self.request.user.is_authenticated():
*form.instance . user=self.request.user
*return super (TweetCreayrView,self).form_valid(form)
*else:
*Return. self.form_invalod(form)
ะััะตัะปะฐะฒ
How can i change my app label in admin interface? apps stored in 'apps' dir, so if i try to do sth like this: INSTALLED_APPS += 'apps.myapp.apps.MyAppConfig' it doesn't work
Anders (izzno / gooood) ๐ณ๐ด
Anders (izzno / gooood) ๐ณ๐ด
Anders (izzno / gooood) ๐ณ๐ด
https://docs.djangoproject.com/en/2.1/ref/contrib/admin/#modeladmin-asset-definitions
Anders (izzno / gooood) ๐ณ๐ด
Krishna Praneeth
Then how can I send you.Because we cannot send pictures no.
Krishna Praneeth
Anders (izzno / gooood) ๐ณ๐ด
google it.
Krishna Praneeth
Okk
Krishna Praneeth
class TweetCreateView(CreateView):
template_name="tweets/create_view.html"
form_class=TweetModelForm
success_url='tweet/create'
def form_valid(self,form):
if self.request.user.is_authenticated():
form.instance.user=self.request.user
return super(TweetCreateView,self).form_valid(form)
else:
return self.form_invalid(form)
Anonymous
Hi guys i looking for a simple login and regesteration code in django
Do you have any link?
tk
From where to get real project on Django
Krishna Praneeth
Krishna Praneeth
try to use pinax it is builtin app in django
Krishna Praneeth
I have used it .it's very simplr
Anonymous
I have some error from static file
<link rel="stylesheet" href="{% static " registration/css/style.css" %}">
.erro:
Did you forget to register or load this tag
Anonymous
Anonymous
Hello friends my Python course complete but next ..... I don't know....
Anonymous
Please help me
Mirco
satyam
satyam
After u can do project on your own u can pretty much move to django or ml anywhere
Anonymous
Mirco
Krishna Praneeth
Anonymous
But sittl i have problem by registeration page
Anonymous
Have any link for sing up template page?
Anonymous
Anonymous
Didnt show my fields
Krishna Praneeth
What's your issue ?
I am getting 'bool object is not callable ' when i am trying to check whether the user is authenticated or not
Mirco
Guillermo
Anonymous
HTML ?
No html file is ture but css and js didnt work turly
Mirco
Mirco
tk
Guys any one tell from where to get real project
tk
For practice
Krishna Praneeth
Krishna Praneeth
Mirco
Mirco
Guillermo
tk
tk
Anyone have project on e-commerce web
Manish
Hii
Manish
I am thinking to go for a project with DRF.
Manish
So which frontend technique will be best option with DRF
Manish
Because in frontend side i am getting alot of options.
Mirco
React or Vue are good choices imho
Anonymous
Guys.. Last i took back up of my project as zip file and upload it to drive. Now i restore it in my desktop system and changed the db system. And make migrations. Now it's showing programming error at a model
Anonymous
*last day
Anonymous
Why so ?
Anonymous
I tried deleting the files in migration folder.
Mirco
Why zipping ???
Anonymous
Tried fake migration to
Mirco
What about uploading it to GitHub, gitlab & co. ?
Anonymous
Can i make it running back again ?
Anonymous
Can i able to make it run again.
Manish
React or Vue are good choices imho
I want to ask one more thing how companies like stripe, sendgrid google provide api authentication with token and api key. I want the same implementation in my site so that people can signup and access via api
Anonymous
For those who have read GIT PRO (which can also be read online) and have already worked extensively with the GIT, which of the chapters are essential for most common work? I want to learn GIT, but I think the whole book goes too deep for the common works of companies...