After some further investigation, the generated by the date_hierarchy for
the DocumentAdmin is, for example,
http://localhost:8098/admin/memorabilia/document/?created__day=25&created__month=5&created__year=2018.
There are documents with a created date of May 25, 2018. However, the
Document field cr
I have two related models, Document and DocumentMetaData, and two separate
ModelAdmins (DocumentAdmin, DocumentMetaDataAdmin) where I can't seem to
get list_filter or date_hierarchy to work. All the other aspects of the
admins work.
When I say list_filter or date_hierarchy don't work, I mean they
Hi,
Did you check if you have the admin app listed in the setings.py?
INSTALLED_APPS = [
'django.contrib.admin',
'more_apps',
]
And what about your url.py? Does it have the /admin routing?
path('admin/', admin.site.urls),
On Thursday, June 14, 2018 at 2:28:41 PM UTC-3, Piotr Trybowski wr
Hi:
I had a problem two days ago, I buid a web site that can authenticate with
twitter. I'm using Django 1.8 and all worked very well, but now it crashed
with 403 Client Error: Forbidden for url:
https://api.twitter.com/oauth/request_token and I don know why. I already
changed all tokens and
So I'm following the tutorial
from: https://docs.djangoproject.com/en/2.1/intro/tutorial02/ and I'm stuck
at opening the admin site.
When i run command runserver i get no error and prompt:
"C:\Program Files\JetBrains\PyCharm 2018.1.4\bin\runnerw.exe"
C:\Users\Username\Downloads\WinPython-64bit
Hello Guys
I would like to know best way to send email on django 2. email should have
email template and dynamic value.
EmailMultiAlternatives or send_mail
And appreciate if good sample
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
Just create a custom manager and pass in the current user to it.
https://docs.djangoproject.com/en/2.0/topics/db/managers/
class MyCustomManager(models.Manager):
def with_current_user(current_user):
return self.filter(user=current_user)
In y our model:
class MyMod
Hello..
Each model of my app, has a field named user... so, I need to filter any
query on that model user=current_user...
I already do that, but manually for each model, on a view.. and I like to
do that directly on some where when I try to use a query, any record will
be filtered.
Can I
Hi Fidel. thanks to notice such a minute mistake which I did not. Yes it is
working now.
On Thursday, June 14, 2018 at 10:53:22 AM UTC+5, Fidel Leon wrote:
>
> If I remember correctly, the correct tag for a button is [obviously]
> , no (please see the missing T).
>
> El jue., 14 jun. 2018 a las
Yea t is missing i suggest use atom it has nice auto completion for the tags :D
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegr
https://simpleisbetterthancomplex.com/tutorial/2016/08/03/how-to-paginate-with-django.html
On Thursday, June 14, 2018 at 3:19:11 AM UTC-4, arvind yadav wrote:
>
> hello
> I want set pagination in Django templates
> my data format is directory
> dict = {'a': 123, 'b': 12,'c': 123, 'd': 12,'e':
class SchoolListView(ListView):
template_name = 'app/List.html'
context_object_name = 'schools'
model = models.School
# i have this first class here i don't need to define attribute like
# ListView.model and ListView.template_name etc
# But---> in CreateView its a totally di
hello
I want set pagination in Django templates
my data format is directory
dict = {'a': 123, 'b': 12,'c': 123, 'd': 12,'e': 123, 'f': 12,'g': 123,
'h': 12,'i': 123, 'j': 12,'k': 123, 'l': 12,'m': 123, 'n': 12,'o': 123,
'p': 12,}
i want only 5 key value in one page
--
You received this mess
13 matches
Mail list logo