I run python manage.py runserver and got following error.
ImportError: Could not import settings 'myapp.settings' (Is it on sys.path?
Is there an import error in the settings file?): No module named
myapp.settings
What's wrong with it and how can I solve this problem?
--
You received this me
I run python manage.py runserver and got the following error.
ImportError: Could not import settings 'myapp.settings' (Is it on sys.path?
Is there an import error in the settings file?): No module named
myapp.settings
What's wrong with it and how can I solve the problem?
--
You received this
try running:
python manage.py runserver --settings=
On 14 December 2014 at 14:56, Saki Fu wrote:
> I run python manage.py runserver and got the following error.
>
> ImportError: Could not import settings 'myapp.settings' (Is it on
> sys.path? Is there an import error in the settings file?): No m
Install vim-autoformat plugin
https://github.com/Chiel92/vim-autoformat
install
sudo apt-get install python-autopep8 pep8 node nodejs
sudo npm install -g js-beautify
try:
1. create a vim file and put insde file:
:Autoformat python
:wq
save and name it: indent.vim
2 now:
vim -s indent.vim my
Hi,
It's pretty normal for a 3rd party library to work fine and great until you
need to mix it with another feature. I'd recommend using a library for one
of those features and coding the other one by hand.
It might make sense to use the (select2, chosen, jQuery Autocomplete)
library, and hand
Hi,
It looks like for 304 (not modified) Django specifically deletes the
content-type header.
https://github.com/django/django/blob/0fc188251069b73b293f79dba6f3e9e331ad7e91/django/http/response.py#L458
It would probably be better to say:
if response.get('Content-Type', '').startswith('text/htm
Hi,
The "admin save handlers" refers to save_model() and there's actually a
nice example of accessing the user.
https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.save_model
If you're using the admin, that's a good place to record this sort of thing.
Using
Hi Tom,
It should work to set up your own sites model with the same table name, as
long as you can change all foreign keys to point to _your_ site model.
Are you actually using more than one site?
Collin
On Friday, December 12, 2014 7:57:21 PM UTC-5, Tom McKenzie wrote:
>
> Hello All
>
> Is th
Yupp, that was what we ended up doing... tnx for the reply
2014-12-14 13:54 GMT-05:00 Collin Anderson :
>
> Hi,
>
> It's pretty normal for a 3rd party library to work fine and great until
> you need to mix it with another feature. I'd recommend using a library for
> one of those features and codin
how to learn django and I don't kill in the attempt,
suggestions, recommendation.
Do you know any resource, books videos for learn django from 0 ?
thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop re
PyCharm ide does a great job for all those file types.
On 14/12/2014 2:00 pm, "Abraham Varricatt"
wrote:
> 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'
I think the best way to start learning Django it's following the official
docs...
https://docs.djangoproject.com/en/1.7/
2014-12-14 16:49 GMT-05:00 Jorge Luis Callalle Torres
:
>
> how to learn django and I don't kill in the attempt,
> suggestions, recommendation.
> Do you know any resource, bo
HI, I have a simple contact form with an address subform in the form of
"TabularInline" where you can add an arbitrary amount of addresses, after I
add a contact and an address and save, when I go to add a brand new contact
and address, the address that I just added will be there and if I add the
n
Collin and Russell (and anyone else),
Do you have any opinion on this?
- https://bitbucket.org/aptivate/django-current-user
It was offered in an earlier post:
- https://groups.google.com/d/msg/django-users/y7aIbN2_CsA/GtmrSjG1nq8J
as a solution to exactly this problem.
Makes the current user a
On Mon, Dec 15, 2014 at 9:14 AM, Fred Stluka wrote:
> Collin and Russell (and anyone else),
>
> Do you have any opinion on this?
> - https://bitbucket.org/aptivate/django-current-user
>
> It was offered in an earlier post:
> - https://groups.google.com/d/msg/django-users/y7aIbN2_CsA/GtmrSjG1nq8J
I am trying to run a site on Django development server but my css don't
load. When I open dev tools in Chrome I see in network that css is loaded
as text/plain and not as text/css.My link is good,because when I open it,it
opens my css file.And my admin site don't have css also,and that can't be
+1 to what Jorge mentioned. You can find books online but most of them (the
ones I found) cover up till Django 1.6 and if you wanna use Django 1.7,
some things won't apply. For example, things like South is already
integrated into Django 1.7.
All the best :)
On Monday, 15 December 2014 05:49:5
from django.db import models
from django.contrib.auth.models import User
# CORE APPLICATION
# Create your models here.
class Member(models.Model):
user = models.OneToOneField(User)
description = models.CharField(max_length=250)
date_of_birth = models.DateField()
location = models.C
I've added 'core' to settings.py file under INSTALLED_APPS too.
On Monday, 15 December 2014 15:10:12 UTC+8, Shazwi Suwandi wrote:
>
> from django.db import models
> from django.contrib.auth.models import User
>
> # CORE APPLICATION
> # Create your models here.
> class Member(models.Model):
> u
You may have an error in your css file if the link isn't 404ring when you
look at your console or the chrome tab...
On 15/12/2014 1:36 pm, "Jovana Andjelkovic"
wrote:
> I am trying to run a site on Django development server but my css don't
> load. When I open dev tools in Chrome I see in network
Hi Everyone,
I am having Field Error while trying to have date field in my admin.py.
There is some problem with Date Filed and I am unable to figure out what
wrong I am doing. here is my code:
*MODEL.PY*
from django.db import models
import datetime
from django.utils import timezone
class
21 matches
Mail list logo