Hy guys sorry for this post but i need help with my application, i need optimize my view. I have 5 models, how i can do this?
Does anyone know of any better ways to replace long affiliate URL\'s with cloaked links or short, such that users only see shortened links开发者_运维技巧.
I don\'t know what\'s going on here... I just want to check the value of a model field and then update it accordingly... any help or insight is appreciated!
I am a front-end developer currently dabbling into Django to build a simple portfolio site to display my work. I used Django quite regularly in my previous job but its now been over 6 months and unfor
Right now I have two different groups of users on my site: customers and businesses. Right now I am only using one login that allows both user groups to see their profile page.
Task: Querying a model in Django ORM so that I can calculate fields based on dates. Specifically, extract months from a model.datefield and calculate values based on these months.
I\'m surprised to find that an ORDER BY DESC query on a FloatField in Django returns null fields higher than fields with positive values.
I\'ve added the domain to my /etc/hosts/ file, and my site resolves, however static content is loading painfully slow. I\'m talking 30 seconds for a page that normally takes 0.8s from localhost. I hav
I have dictionary with arrays inside: dicarr = {\'category\': [\'post1\',\'post2\', \'e.g.\'], \'category2\': [\'post1\',\'post2\']}
Is it possible to reuse a template dictionary in another view ? For instance, imagine a view performs a search on the db and provide the search results in a dictionary to a template. The template dis