Intelligent-d2
Web development, simplified
CALL US:737-215-5094
  • Home
  • Services
  • Portfolio
  • Testimonials
  • Contact Us
  • About Us
  • Blog
  • FAQ

Month: June 2017

How to access URL parameters in Django CBVs

Posted on June 7, 2017October 20, 2017 by red_shift

Another common question in regards to Django is, how do I access a URL parameter captured from your URLconf(urls.py)? The and the answer is simpler than you might think. Before we get started I’m using Python 3.5.2 and Django 1.11.3. and assumes you have basic knowledge of Django Classed Based Views(CBVs) and its URL configuration. Read More

Posted in Django, Python Leave a comment

Pass object to formset to filter form ChoiceField

Posted on June 2, 2017October 20, 2017 by red_shift

One of the initial problems I encountered with developing Django for the first time was how to pass object information to a formset so I could filter out a choices field based on the current user. There are two methods you need to override to accomplish this task, one is get_form_kwargs in the generic view Read More

Posted in Django 1 Comment

Recent Posts

  • Use the python Requests library to post Multipart-Encoded file
  • Web scraping and saving to a file using Python, BeautifulSoup and Requests
  • Create user and user profile in CreateView using single Formset without using post_save signal

Categories

  • Databases
  • Django
  • Python

Archives

  • August 2017
  • July 2017
  • June 2017
  • May 2017

Recent Comments

  • Bestie on Pass object to formset to filter form ChoiceField
  • red_shift on Web scraping and saving to a file using Python, BeautifulSoup and Requests
  • red_shift on Web scraping and saving to a file using Python, BeautifulSoup and Requests
Theme by Out the Box