Hello everyone,
One of the biggest features introduced in Django 1.7 are migrations. They
can broadly be classified into 2 types -
* schema migrations
* data migrations
Schema migrations deal with changes to the database schema. eg - changing
max_digits of a DecimalField.
Data migrations revol
n in Django
1.7?
Slowly discovering django,
Abraham V.
On Wednesday, January 14, 2015 at 12:56:45 PM UTC+5:30, Russell Keith-Magee
wrote:
>
>
> On Wed, Jan 14, 2015 at 3:03 PM, Abraham Varricatt <
> abraham@googlemail.com > wrote:
>
>> Hello everyone,
>>
&
Ignoring the malformed code, will the call to authenticate() even work
without username? According to the docs,
https://docs.djangoproject.com/en/1.7/topics/auth/default/#django.contrib.auth.authenticate
It takes credentials in the form of keyword arguments, for the default
> configuration this
In addition to the other answers, I will suggest that you re-think your
view logic - you haven't handled the case where your IF block fails.
Remember, Django expects every view function to return a HttpResponse
object. Assume that someone's request isn't authorized (yet) or even
rejected. What
on queries if both backends are used, and the
> username field is checked twice).
>
> TL;DR; Overriding the user forms is probably not enough, you'll need a
> custom user and custom authentication backend.
>
> Not sure if I made the situation better or worse, but HTH...
>
&g
Hello,
I'm trying to implement custom subdomains on a customer site and am having
trouble understanding how the HOST option in settings.py works. The
requirement is that if a user logs in, they should see their own username
as the subdomain. So for example if we have 3 users - mark, alice and b
Ok, I think I goofed up asking the question here. I noticed that there was
a HOST setting defined in the django documentation and assumed it was the
same thing, but some more code investigation, reveals otherwise.
But I *am* running into a tangential issue. I mentioned that if I set the
value
ALLOWED_HOSTS", then that one is only a
>> whitelist of allowed domains.
>>
>> Try and describe your problem with more detail, What error are you
>> getting? What problem with JQuery are you having?
>>
>> On Thu, Feb 5, 2015 at 9:48 AM, Abraham Varric
at 13:59:34, mdj escreveu:
>
>> If you're talking about ALLOWED_HOSTS, make sure you use something like
>> ALLOWED_HOSTS = ['.example.com']. The dot is significant.
>>
>> You will also need to set SESSION_COOKIE_DOMAIN = '.example.com' s
Hello,
I'm trying to make an app where folks can order X quantity of an item. The
condition is that the order should only be made if inventory exists. Assume
that we have stock of Y items. This means that only if Y >= X should we
allow the sale to go through. And once we accept an order, the in
uary 19, 2015 at 12:03:57 AM UTC+5:30, Carl Meyer wrote:
>
> Hi Abraham,
>
> On 02/17/2015 10:01 PM, Abraham Varricatt wrote:
> > I'm trying to make an app where folks can order X quantity of an item.
> > The condition is that the order should only be made if invento
Hello everyone,
I'm working on an e-commerce site. There is a generic version of the site
available to the open internet and customized versions available to
enterprise users. Now, when I say 'customized', I'm mostly talking about
really minor customization's. If the current user belongs to ABC
Hello everyone,
I'm working on a Django application which needs to communicate with a
3rd-party REST API. In production the flow would be like this;
1. end-user browser sends a request to my django server
2. my server makes a remote REST call to 3rd party server
3. 3rd party server resp
>> done on the testCase class, the view was written without if DEBUG or
>> anything similar
>>
>> On Mon, May 25, 2015 at 3:33 PM, Abraham Varricatt <
>> abraham@googlemail.com > wrote:
>>
>>> Hello everyone,
>>>
>>> I'
Hello,
Is there any command-line based tool which would let one auto-format Django
template files? Ideally, the tool should also be used to format HTML, CSS
and .JS files too.
I've recently inherited a bad-looking code base and want to clean it up.
Have heard of the PEP8 autoformatter, but th
ls the need to color it
anyway?!?
-Abraham V.
On Monday, 15 December 2014 03:24:30 UTC+5:30, somecallitblues wrote:
>
> PyCharm ide does a great job for all those file types.
> On 14/12/2014 2:00 pm, "Abraham Varricatt" > wrote:
>
>> Hello,
>>
>>
Ha, ha. :D
I'm no expert. I need the tool myself to learn a lot of this stuff.
-Abraham V.
On Wed, Dec 17, 2014 at 7:15 PM, Collin Anderson
wrote:
>
> Hi Abraham,
>
> If you made a took, I'd use it. :)
>
> Collin
>
> On Saturday, December 13, 2014 9:53:56
Can it be possible that you are rendering a different template (without
CSRF) for the mobile version?
-Abraham V.
On Thursday, January 8, 2015 2:15:21 PM UTC+5:30, Sugita Shinsuke wrote:
>
> Hello Vijay Khemlani
>
> Thank you for replying.
> But, of cause I appended the tag in my form like bel
I'm trying to build something similar to a microservice using Django and
can't figure out how to setup the authentication part.
When I say 'microservice' I mean, we have a bunch of systems like -
example.com , test.com , another.com and another.test.com (a subdomain).
I'm going to build a RE
My head is still spinning over the different concerns to be juggled over
this issue. But I just wanted to come back and say that I really appreciate
the responses. Especially from James - Thanks a lot! :)
Things on my mind -
* network controls = I can understand how attractive (and simple) this
A team I'm working with has its hands full with an old Django 1.4 project
(python 2.7). We're thinking of refactoring the code-base and migrating
things over to the latest Django 1.9. Thing is, we can't abruptly stop
working on the old 1.4 code base. So, an idea was floated - to start a new
Dja
things - do one-time
> port everything to 1.9 and continue development there.
> If codebase is so large that it takes significant time, you can do
> one-time port to different branch of your codebase, do the upgrades and
> finally backport all new features that are not yet ported over.
>
&
Would a CMS work? Like,
http://www.django-cms.org/en/
or
http://mezzanine.jupo.org/
-Abraham V.
On Tuesday, 5 January 2016 03:33:00 UTC+5:30, Fellipe Henrique wrote:
>
> Thanks for all replies..
>
> But, I'm looking for a framework, not a finished ERP like Odoo...
>
> Need to be web, so, try
Technically speaking, setting DEBUG=False on a production system does not
render it un-debuggable. You can still debug and work with such deployments
but expect resistance. An ancient approach to debugging ANY production
environment is to liberally sprinkle printf (or the django log equivalent)
Hello everyone,
I've got a very simple django project hosted on github
( https://github.com/abrahamvarricatt/TDDwithPython ; yes, it's based on
the book ) and I'm trying to figure out how to configure a jenkins CI
server to run tests based on pull requests. My end objective is to get a
system
Hello everyone,
I've attained some success in my endeavor and wanted to talk about it (The
following events take place over the past few days).
The first thing I needed to do was rent out a cheap ubuntu server - I got
one from digitalocean. A requirement for jenkins is java. I decided to go
w
us commits .. etc?
-Abraham V.
On Saturday, January 9, 2016 at 9:34:32 AM UTC+5:30, luisza14 wrote:
>
> Do you know buildbot ?
>
> http://buildbot.net/
>
>
>
> El viernes, 8 de enero de 2016, Abraham Varricatt <
> abraham@googlemail.com > escribió:
> > Hel
I'm going to go out and make a random guess that when you say "use a view
inside another view" with respect to the code you posted, you want all
calls to index() or list() to render the base view. In that case just use
return. i.e.
def index(request):
return base(request)
Yours,
Abraham V.
This might be silly to ask but - can we assume you've completed the django
tutorial?
On Monday, 29 August 2016 16:56:33 UTC+5:30, rajeshkmr9583 wrote:
>
> Hi,
>
> i'm new to Django i need some mini project which contain at least 4
> page for go through how it works..
>
> Thanks
>
--
You
It's nice that you are on Ubuntu. :) Here is a quick and dirty way to get
up to speed, (going to assume you will use python3)
# Installing virtualenv globally
$ sudo apt-get update
$ sudo apt-get install python3-pip
$ sudo pip3 install virtualenv
Once you have that done, navigate to an empty di
Not sure what the issue is without more info about the error, but is the
regular expression for that view correct? Assuming that you want to divert
folks to the root of your site can you try the following?
url(r'^/$', views.dashboard, name = 'dashboard')
NOTE: if the error still persists, it w
The idea of doing a POST request during template rendering seems weird. As
others have mentioned - that's not the place for it.
But perhaps you issue could be a matter of performing your POST operation
on the client side, instead of the django server? In that case, it might be
worth investigat
Hello,
Do we have any standard/recommended way to distribute the python virtualenv
used in a django application across multiple servers?
I'm able to write a provisioning script to do the following on a server,
(for brevity, this is just a high-overview)
* Clone the master branch of my django pr
Hello Sylvain,
I think you have two concerns here,
On Friday, December 9, 2016 at 1:39:50 PM UTC-5, Sylvain Dégué wrote:
> SO im thinking about reset completly my production database and remove all
> the migrations to start fresh. I dont have much data in the production
> database so its proba
Hello Jochen,
On Monday, December 12, 2016 at 9:17:11 AM UTC-5, joche...@gmail.com wrote:
>
>
> for editing Objects, but it seems that those views can only deal with
> objects that already are in the database. So is there a more
> idiomatic way to solve this or am I stuck with the above solutio
Hello Xuanbei,
You are most likely getting that erro because you still have 'polls'
mentioned inside INSTALLED_APPS within your settings.py file.
On a different note, can you link to the tutorial you are following? I
don't recall the official django tutorial instructing to install polls via
p
That's an interesting project!
If I use WhiteNoise as part of a production deploy somewhere, can I skip
(or ignore) running 'manage.py collectstatic' ?
Yours,
Abraham V.
On Wednesday, 3 May 2017 15:13:36 UTC-4, Dan Tagg wrote:
>
> You might want to check out WhiteNoise (
> https://whitenoise.
How ... did you impose our will on this user? ;) I'd like to hear more ...
for peaceful research purposes, of course.
-Abraham V.
On Monday, May 29, 2017 at 9:19:01 PM UTC-4, Mike Dewhirst wrote:
>
> Cancel this question. We will force the user to comply with our reality.
>
> Cheers
>
> Mike
By chance do you have any screenshots in your documentation?
-Abraham V.
On Tuesday, May 30, 2017 at 8:39:54 AM UTC-4, izi wrote:
>
> Hello,
>
> We are happy to announce the availability of the version 0.8.1 of
> django-admin-tools:
> https://pypi.python.org/pypi/django-admin-tools/0.8.1
>
>
Hello,
Is it possible to get the count of entries from multiple tables in a single
query call? I'm looking at the official docs on aggregation and I can't
find anything. For example assume I have the following 2 tables,
class Author(models.Model):
name = models.CharField(max_length=100)
aggregate function.
>
> If the models are unrelated, then I’m fairly certain that you can only use
> separate queries to get your results.
>
>
>
>
>
> *From:* 'Abraham Varricatt' via Django users [mailto:
> django...@googlegroups.com ]
> *Sent:* Wed
Consider thinking of the problem this way - you are trying to tell uwsgi to
run a django project located within a certain directory using a virtualenv
located in another directory.
What James is asking is, if you have checked that the virtualenv you are
using has all the dependencies to run yo
On Friday, June 16, 2017 at 7:06:33 AM UTC-4, Nabil BOUDERBALA wrote:
>
> After extending an existing user model, I get RelatedObjectDoesNotExist
> exception with a value User has no dcf_profile. I seems that dcf_profile
> isn't created automatically for each user.
>
It took me awhile to figure
If this is a production deployment, you probably need to run collectstatic
and test if static files are being served correctly - more a deployment
issue than a django matter.
But, if you are testing with 'runserver' on a development system ...
without exact knowledge of your folder structure,
44 matches
Mail list logo