JZA
thats my question, what would be the way to do it, it should be hardcoded somewhere
JZA
where is that page
inchidi
control.divio.com
JZA
seems this is an issue from a django attribute
JZA
https://docs.djangoproject.com/en/1.11/ref/models/options/#verbose-name
JZA
this inserts the extra 's' on the words
JZA
on Images and Category and others
JZA
which is pretty lame
JZA
I mean it wouldnt hurt if it was in spanish it would actually work
inchidi
its not an issue 😕 actually its cool since you are not giving anything except variable name and django convert it
JZA
yes but convert it to non-english
JZA
would be easier to just have a label option and I can put whatever I want
JZA
is not smart enough to recognize Images is already in plural or that Category is Categories and not Categorys
JZA
so I found the problem had to do with meta informacion for the model object
JZA
inserts plural 's' as an atribute
Abhi
do you guys use vim for django project ?
Django Bot
>> Blogs
- Django Tips #21 Using The Redirects App
Anonymous
Abhi
yeah
Anonymous
I do
Anonymous
dunno why that question was specific to django
inchidi
talking about editor
inchidi
help, my cursor become adult cursor 😱
inchidi
oh, its alt+shift+insert 😁
Davo
Huh?
Davo
Isn’t that just multi-line edit?
inchidi
yeah, accidentally turn it on, and never using it so am panic lol
Davo
Lol
Anonymous
😂
Anonymous
Linuxers
JZA
hey guys I have this list, and I want to hide the ID field, but also see how can I make it the element with the URL link
JZA
sorry for the n00b question.
JZA
so instead of having ID items with the link I want to add 'video_title' and have the items with the links.
JZA
Anyone?
Anonymous
I can't see the pic properly
Anonymous
It's pixelated
JZA
umm.. shouldnt but is basically this:
ID VIDEO Unique ID
1 http://youtube.... sadaAAfk
2 .....
Anonymous
ok
JZA
and the ID is the one holding the link.
What I need is reformat it so it looks like this.
Title VIDEO URL
Cat Video http://youtube...
and the Title holding the link
Anonymous
I can't "the element with url link" part
Anonymous
you can use exclude attribute to hide those ids
Anonymous
using class Meta
Anonymous
and regarding title, I guess you can access it via youtube API
Anonymous
and what do you mean by "title holding the link"
JZA
ok here are the questions.
how do I add a link on an column element of the table?
how do I rename the column title?
how can I remove a column from the table.
JZA
imagine the fields are "id", "unique_id", "url" and "video_title"
JZA
template?
inchidi
btw this is group for django framework, not django cms 😕
JZA
so is not for all things django?
inchidi
django cms is just one django framework product
JZA
I dont think is a framework I think is an app
inchidi
then you have wrong idea about django
inchidi
https://djangoproject.com
inchidi
#starterpack
Group Butler
#starterpack
New to Django? here is some resource to start
Official docs tutorial
Step by step tutorial
Video tutorial
Another video tutorial
Books
Django by Example
Tango With Django
JZA
I think framework is a bunch of libraries and modules, an app is an actual working prodouct.
inchidi
yeah, but if you dont have access to your web code, i think no one here can help you in normal ways
JZA
who says I dont have access to it?
JZA
is open source
inchidi
then please share your template that rendered to that page
JZA
I dont think thats the way it should go.
JZA
I think those lists are built from the model or view or something. template should just spew whatever the code tells them.
JZA
just like the vanilla django admin templates
inchidi
even your views pass those id, but if you remove {{ id }} from your template then its gonna be gone
inchidi
so, its django admin?
JZA
I dont think that will show
JZA
https://github.com/divio/django-cms/blob/release/3.4.x/cms/templates/admin/cms/page/tree/base.html
inchidi
inchidi
you pointing wrong template https://github.com/divio/django-cms/blob/release/3.4.x/cms/templates/admin/cms/page/tree/base.html#L46
Anonymous
does each app have different User model database tables?
Anonymous
I am trying to test my app
Anonymous
in which I create a new via it's methods
Anonymous
then sign in via website using selenium
Anonymous
but I guess I can't sign in
JZA
Anonymous
I tried using client methods and even that way it doesn't login
JZA
there is no other admin template
Anonymous
maybe user is not created
inchidi