Anonymous
That's the problem
Anonymous
If you'll look in the response of 2nd xhr request
Anonymous
You'll get whole HTML page there
Anonymous
But it won't get render ofc
David
Indeed, in the response, it returns the whole template.
David
But why it doesn't get rendered?
Anonymous
They are meant to get response
Anonymous
You can get data from response
Anonymous
If you want to render you'll have redirect from JS
Anonymous
I'm no JS developer so can't help further
David
Oh, ok... I get it now... But I'll have to find a way with JS then... thanks for the tip!
Django Bot
>> Jobs
- Web Developer: Fullstack/backend (Remote)
>> Links
- Running Django tests in container
- Django Logging, The Right Way | Lincoln Loop
- Project Fluent
Val
Hey guys I am working on a project I call event manager... I want to initiate a function where an admin has the privilege to delete an event created by a user allocated to a venue. So when this event has been deleted by the admin I want a mail to be send to the user that created the event that your event has been cancelled using any third-party library. Now I have already written the function giving the admin the privilege to cancel any event. My problem now is initiating the email notification to notify the user that created that event that he or her event has been deleted. Please any ideas guys?
Anonymous
Well you modify the delete method of that event
Anonymous
Like ofc you would have stored that event in that database
Anonymous
Modify it's manager
Val
Anonymous
https://docs.djangoproject.com/en/1.11/topics/db/models/#overriding-model-methods
Anonymous
https://docs.djangoproject.com/en/1.11/ref/models/instances/#deleting-objects
Anonymous
In the delete method send a mail before calling the original delete method
Val
Abhi
https://www.reddit.com/r/django/comments/7gdr6e/need_to_hire_a_django_developer_what_questions/
Anonymous
Abhi
Yeah
Anonymous
What was the objective behind this message?
Abhi
Check the comments
Abhi
What can be asked
Komang
Hay
Django Bot
>> Links
- Django admin: How to insert Inline between fields - Anton Linevych's blog
- Wagxperience - personalisation for Wagtail CMS
- Django Logging, The Right Way | Lincoln Loop
- Course Overviews - Real Python
- Django Logging, The Right Way | Lincoln Loop
- Obey the Testing Goat!
- Effective TDD: Tricks to speed up Django tests (up to 10x faster!) β DaveOn
Abhi
i am defined two variables in setting.py file like this
Abhi
Chat_Script_Location = '/home/nimoy/Documents/ChatScript/'
RAW_DATA_LOCATION = os.path.join(BASE_DIR, 'Data/')
Abhi
when i am importing these variables in a view function like this a = settings.RAW_DATA_LOCATION
b = settings.Chat_Script_Location
Abhi
RAW_DATA_LOCATION can be fetched easily but for Chat_Script_Location i am getting this error
Abhi
AttributeError: 'Settings' object has no attribute 'Chat_Script_Location'
inchidi
Django Bot
>> Links
- Django Community | Django
- MicroPyramid/django-mfa: Django app for providing MFA (Multi-Factor Authent
- Running a Django Application on Windows Server 2012 with IIS
- Introduction · Django Girls Tutorial
- Django Tutorial: The Local Library website - Learn web development | MDN
- Need to hire a Django developer. What questions should I ask him/her to tes
- Using Database Views in Django ORM | Rescale
- Django REST Framework 3.7 -- Classy DRF
Audacious Tux
does it make sense if i use "FROM ubuntu" in dockerfile, if that's intended to be used in vps with ubuntu?
Audacious Tux
btw... i'm ultra noob in docker
Anonymous
Abhi
Abhi
but i still do not understand, why one variable is getting imported while not, even the definintion of both variables are similiar
inchidi
Abhi
yeah
Komang
Lol
ππππ¬ππΎππππ
I want to make Timeline Feed system for the users to access when the open thier Home Page.
i need any useful links or info to help me make this.
Anonymous
Look up all the post by Django RSS
Anonymous
I'm sure you'll find something useful
inchidi
Anonymous
I don't like that
Anonymous
Infinite scrolling ftw
inchidi
the difference is just user didnt see how much pages he get & at
inchidi
i think i have good online open source example project that implement what you need. a sec
inchidi
https://github.com/vitorfs/bootcamp here
ππππ¬ππΎππππ
i store all the timeline items in timeline_posts. and couple lines down in the Timeline view there's posts_list variable which filter through the timeline_posts. my question is: does this way cost very much on the computation or Data retrieval speed ?
ππππ¬ππΎππππ
inchidi
Django Bot
>> Blogs
- Configure Django to log exceptions in production
>> Links
- A Complete Beginner's Guide to Django
- SQL Database Best Practices with Django (or any ORM) β Scott Lobdell
- django-marcador - Basic Django Tutorial
- Quick example of extending UserCreationForm in Django β jesse noller
Django Bot
>> Links
- Django Logging, The Right Way | Lincoln Loop
Anonymous
https://www.djangoproject.com/weblog/2017/dec/02/django-20-released/
Anonymous
No more python 2 and somewhat more readable URLs 🙌
8la
👌
ππππ¬ππΎππππ
Anonymous
Key changes
Anonymous
:p
Django Bot
>> Blogs
- Caktus is Excited about Django 2.0
- Setup & Install Ionic
>> Links
- Optimized Python
- Twitter
Anonymous
https://channels.readthedocs.io/en/latest/
Anonymous
I didn't knew thing like this existed
Essa
It was on talk python to me
Or podcast init
Essa
Highly recommended
Anonymous
Can you give a brief?
Essa
Can you give a brief?
Itβs a one hour podcast
They talked in about everything regarding django channels
Itβs a good introductory to Django channels
Essa
https://talkpython.fm/episodes/show/98/adding-concurrency-to-django-with-django-channels
Listen 👂 to it
If you have a spare time
Benedikt
How hard/easy is it to develop a custom webshop with python?
Benedikt
Without the cash stuff, at first I just want to send a confirmation mail
Django Bot
>> Links
- 0xadada/dockdj: A recipe for building 12-factor Python / Django web apps wi
- How to set up world-class continuous deployment using free hosted tools
- GitHub - twoscoops/two-scoops-of-django-2.0-code-examples: The official rep