Django Bot
>> Links - Building APIs with Django and Django Rest Framework — Building API Django 2
ABrunetto
Hello guys. I am going to start a newsbased website. I am seen about wagtail. Do you recommend me it? Any security issue to take into account? Any recommendation? Thanks!
Luis
If you need help just tell me
Luis
If you need a payed co worker
Luis
I'm free
Luis
ABrunetto
If you need a payed co worker
Hahahah thanks! I will tell you when it comes to running. 😄 my pocket is empty by the moment.
R
Didn't know Wagtail. You recommend it over Mezzanine and Django CMS?
Luis
It's enough for me, different, simple but completely
Django Bot
>> Links - usefulpython: Codebase for UsefulPython.com - a Django powered Python blog,
Luis
Extensively
Val
iirc i already give you an answer 🤔 add location and category as field to your model Business
I've done that. I sent you some message in the JavaScript party 💃 group. Please kindly look at it when you have the time.
Django Bot
>> Links - Describing events in code (Phil Gyford’s website)
Django Bot
>> Links - A comprehensive Django CBV guide
Django Bot
>> Links - Beginner’s Guide to Deploying a Django + PostgreSQL project on Google Cloud - Build a REST API with Django – A Test Driven Approach: Part 1 - A Complete Beginner's Guide to Django - Part 1 - Add AJAX interactivity to Django, without writing Javascript! | Peter Curet - Simple Django Web Application Tutorial | Codementor
Sayan
I'm also facing a similar problem as the guys "xyz" is has no attribute "abc"
Sayan
Here's what I've done till now
Sayan
I'm reading Signals as of now
Django Bot
>> Blogs - Testing Django applications in 2018 >> Links - Flask Or Django? An In-Depth Comparison | Part One ― Scotch - Forgotten Username & Password | Treehouse Community - Database Modelling — Django ORM Cookbook 2.0 documentation - Testing Django applications in 2018 - jcalazan/ansible-django-stack: Ansible Playbook for setting up a Django app - A Complete Beginner's Guide to Django - Part 7
inchidi
its signals
Sayan
RelatedObjectDoesNotExist at /account/signup/ User has no uprofile.
Sayan
It's because User is not being created I'm guessing
Sayan
As per my reading I need to use some kind of post_save handler to handle the save() method of user
Sayan
Also, I'm not able to wrap my head around signals as of now, its a bit confusing
inchidi
ah
inchidi
try remove line 31,32 and add else there
inchidi
at your model
Sayan
same error
Sayan
@receiver(post_save, sender=User) def create_user_profile(sender, instance, created, **kwargs): if created: UserProfile.objects.create(user=instance) else: instance.uprofile.save()
inchidi
remove instance=... line 9,11 in your views
Sayan
NameError at /account/signup/ name 'messages' is not defined
Sayan
that's weird :p
inchidi
@receiver(post_save, sender=User) def create_user_profile(sender, instance, created, **kwargs): if created: UserProfile.objects.create(user=instance) else: instance.uprofile.save()
so the explanation is in this code "after" certain data saved to your User model, it will create UserProfile for its user but if it an update it will update its userprofile (actually you can remove the else coz it doing nothing)
inchidi
remove instance=... line 9,11 in your views
coz this is registration of new user form, then the instance not created yet. the user created/will be created is different with current authenticated user
Django Bot
>> Links - Dramatiq: simple task processing — Dramatiq 1.0.0 documentation
Charly
if not sms.used: sms.send() sms.used = True sms.save()
Charly
and what have you tried?
Thara bhai mudi
Which theme?
Sayan
Which theme?
Anderomeda
Sayan
Anderomeda
my os kinda complements my theme
inchidi
in your views, message not defined. maybe you forgot to import from django.contrib import messages
📕Editar📘
Que tal es python para web ? O es mejor PHP?
Sayan
I think i haven't registered the methods with post_save.connect ()
Sayan
That's why i think it's not working
Sayan
I think this will work as a callback after save() is invoked
Django Bot
>> Links - Quickstart for Python in the App Engine Flexible Environment  |  Python  |  - encode/apistar: A smart Web API framework, designed for Python 3. 🌟 - BertrandBordage/django-cachalot: No effort, no worry, maximum performance. - GitHub - django-mptt/django-mptt: Utilities for implementing a modified pre - GitHub - django-treebeard/django-treebeard: Efficient tree implementations - BertrandBordage/django-tree: Fast and easy tree structures. - Two Scoops Press: Making Python and Django as fun as ice cream
Anonymous
Pls which Linux distro is this?
Django Bot
>> Links - Save Pandas DataFrame as Django Model | Laur IVAN
mλdcodez
Django Bot
>> Links - Guide to using Django with Zappa - Storing photographs using Django - Django development with Docker —A completed development cycle - Django Admin Cookbook — Django Admin Cookbook 2.0 documentation - Building an API with Django REST Framework and Class-Based Views
Django Bot
>> Jobs - Django developer >> Blogs - Adding dynamic dns hostnames to Django INTERNAL_IPS >> Links - Configure Django to log exceptions in production —Agiliq Blog | Django web - Simple is Better Than Complex: How to Integrate Highcharts.js with Django — - How to Integrate Highcharts.js with Django - HTML Templating – Output a Grid in a Single Loop | Gregory Schier - Effective Django — Effective Django - How To Tango With Django 1.7 — How to Tango with Django 1.7 - Test Driven Python Web development - Django - Full Stack Python - Jonathan Cox - Django/Flask with React.js – Timothy Ko – Medium - Guide to using Django with Zappa - Using Webpack transparently with Django + hot reloading React components as - DjangoとTornado · tech-sketch/Brain_Hacker Wiki · GitHub
Django Bot
>> Links - Obey the Testing Goat!
Django Bot
>> Jobs - Remote Senior Django Developer >> Blogs - Resetting Django Migrations >> Links - Django for Beginners - Django Rest Framework with React Tutorial - William S. Vincent - Tutorial: Django REST with React (Django 2.0 and a sprinkle of testing) - Simple is Better Than Complex: How to Integrate Highcharts.js with Django - Resetting Django Migrations - Django development with Docker — A step by step guide - Custom Domains - Guide to using Django with Zappa - Core Django Setup - Guide to using Django with Zappa - A comprehensive Django CBV guide — /var/ - Testing Django applications in 2018 - djaodjin/djaodjin-saas: Django application for subscription businesses - Building a Modern Web Application with Django REST Framework and Vue: Build - Deployment checklist | Django documentation | Django
Sayan
in your views, message not defined. maybe you forgot to import from django.contrib import messages
Hi, I finally found a way to do the userprofile thing, but i think the way i did is not recommended. whats your opinion?
Sayan
wrote the form saving logic inside views.py and didn't use the signal mechanism
Django Bot
>> Links - Django Weblog: Django bugfix releases: 2.0.4 and 1.11.12 - RunProfileServer — django-extensions 2.0.6 documentation - GitHub - mirumee/saleor: An e-commerce storefront for Python and Django - Misconfigured Django Apps Are Exposing Secret API Keys, Database Passwords - A Phoenix Field Guide For Djangonauts | Cheesecake Labs
Django Bot
>> Links - A Phoenix Field Guide For Djangonauts | Cheesecake Labs - djaodjin/djaodjin-saas: Django application for subscription businesses - Building APIs with Django and Django Rest Framework — Building API Django 2 - django-highcharts-example/README.md at master · sibtc/django-highcharts-exa
Django Bot
>> Links - A comprehensive Django CBV guide — /var/ - Guide to using Django with Zappa
Django Bot
>> Links - Fabric
Django Bot
>> Links - Welcome - Python Django Tutorials
Anonymous
Did you read and queries?
Django Bot
>> Blogs - OpenCV & Python: How to Change Resolution or Rescale Frame >> Links - The Django Book - Python Django Tutorials - springload/awesome-wagtail - Build a REST API with Django – A Test Driven Approach: Part 1 ― Scotch - Building an API with Django REST Framework and Class-Based Views - Modern Django — Part 2: REST APIs, Apps, and Django REST Framework - (1) Build a Rest API with the Django REST Framework - YouTube
Django Bot
>> Jobs - Python Developer in Bristol - Python Developer in Bristol >> Blogs - How to Record Video in OpenCV & Python - Open source activity (April 2018 edition) >> Links - A comprehensive Django CBV guide — /var/ - Django Querysets - add a string literal annotation - Stack Overflow - django-mediagenerator asset manager | All Buttons Pressed - Django in Production: Part 1 - The Stack
Fahad
Django need server appatche ?
Luis
No
Fahad
What need server?
Luis
You can use apache with uwsgi
Luis
Or nginx with gunicorn
Fahad
Thank you sir
Django Bot
>> Links - Using Django with an existing legacy database
Django Bot
>> Links - Reconciling Backend Templates with Frontend Components
Meera
how can i make a web app of student register that can be used by universities that can add students...add academic and personal info and can perform basic CRUD operations