Anonymous
How to fix of error 'User object has no attribute get ' in view.py ...?
Anonymous
Yeah, We totally can help without looking what exactly happened
Anonymous
BTW you tried to use something that's not a part of User
Anonymous
May l send picture ...?
Lapanit ☃️
Anonymous
No
Django Bot
>> Jobs - Fullstack Python Developer >> Blogs - Make Django Rest Framework and Axios Work Together Nicely
Abhi
whenever a user login to my django app, i want to access his address and render/point the address to google map
Abhi
i have written code to fet the ip address of user making the request
Abhi
so is ip address will be enough to get his/her location ?
Abhi
if not then how can i ?
Anonymous
IP-->IP Tracker-->co-ordinates-->Google maps-->location
Anonymous
JZA
Hi people, I got this issue with admin labels.
JZA
as you see, there are some mistypes from the admin UI and I want to fix them, this is running on django cms
JZA
but I would love to edit the label, but without having to modify the objects a whole lot
inchidi
django cms is python package name?
JZA
is a django module
inchidi
okay nice, btw how those links rendered?
JZA
I am not sure, is a module, so whatever is outside the application
inchidi
i mean its from your models, form, or maybe serializer?
inchidi
can you show your code?
JZA
is a module
JZA
I am trying to get the name of it, I think is the youtube
JZA
django-cms-youtube module
inchidi
so you are using this django-cms.org ? i dont know about django cms but am trying it atm
JZA
ok
JZA
thanks
inchidi
which part is this page?
JZA
is on the admin page
JZA
I have different menus which I guess there are apps
JZA
I am trying to find where in the files are these apps since they are modules from INSTALLED_APPS I guess it would be on the modules folder on the system.
JZA
INSTALLED_APPS = ( 'djangocms_admin_style', 'django.contrib.admin', 'gultnewscms', 'newsblog', 'authentication', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', #'material.admin', 'django.contrib.sites', "multisite", 'djangocms_multisite', 'django.contrib.sitemaps', 'django.contrib.staticfiles', 'django.contrib.messages', 'cms', 'menus', 'sekizai', 'treebeard', 'djangocms_text_ckeditor', 'filer', 'easy_thumbnails', 'djangocms_column', 'djangocms_link', 'cmsplugin_filer_file', 'cmsplugin_filer_folder', 'ckeditor_filebrowser_filer', 'cmsplugin_filer_image', 'cmsplugin_filer_utils', 'djangocms_style', 'djangocms_snippet', 'djangocms_googlemap', 'djangocms_video', #'ckeditor', #'ckeditor_uploader', 'django_wysiwyg', 'parler', 'taggit', 'taggit_autosuggest', 'meta', 'djangocms_blog', 'sortedm2m', 'zinnia', 'tagging', 'reversion', 'django_comments', #'aldryn_common', #'xadmin', 'crispy_forms', #'material', #'material.frontend', 'disqus', 'connected_accounts', 'connected_accounts.providers', 'djangocms_disqus', 'djangocms_youtube', 'embed_video', )
JZA
that is my current installed apps
inchidi
so you already install divio app and already initialize your project locally?
JZA
I am not the dev
JZA
I am trying to find where this string is coming from
inchidi
no, those are not apps
JZA
I mean the title of the menu
JZA
NEWSBLOG
inchidi
yeah, check your templates
JZA
huh templates? what does my templates have to do with this? those are from the website not the admin
inchidi
huh templates? what does my templates have to do with this? those are from the website not the admin
yeah, django apps technically installed python modules used in django project
inchidi
templates is directory where your html stored
JZA
yes but I have no html from the admin UI
JZA
this menu IS from the admin UI
inchidi
how about database? do you have access to database?
inchidi
this menu IS from the admin UI
can you try double tap/click those miss typed title?
Anonymous
I ever use django cms but made crazy
JZA
they work
inchidi
they work
with double tap?
JZA
admin/newsblog/category/
JZA
double tap?
JZA
you mean right click?
inchidi
double right click
inchidi
i get menu to edit it with double click
JZA
ok I did it but I am on linux I dunno what double right click does
JZA
nope
JZA
I have a change link but the change is only for the categories that are previously set up
JZA
not the actual label
JZA
I mean I could try to find the app which it belongs to
JZA
is that an admin page?
inchidi
nope, but am not sure. honestly am lost on this web 😄
JZA
go to ~/admin/
JZA
log in and then try to double tap on those menus
JZA
and see if it works like that
inchidi
ah am already logged in as admin
JZA
I mean the administration interface
JZA
not the adminstrator user
JZA
the admin dashboard
JZA
yes
JZA
can u double click and change the label of the menu items like Pages to My Pages?
JZA
because that is (sort of) wht I am trying to do
JZA
what if I want to edit it what I shold be doing?
JZA
should
inchidi
what if I want to edit it what I shold be doing?
i think you cant do it via administrator page, because its like add-ing new models and modeladmin, it means needs rerun (rebuild) the web