On 2015-09-22 19:04, James Schneider wrote:
Did you delete the previously created migration files?
.
There should be a 'migrations' folder that was created inside of your
app.
You can whack the whole folder, it will be created next time you run
'makemigrations'.
Indeed, it is the
>> Did you delete the previously created migration files? Django won't ask
>> those questions unless previous migration files exist. If you're starting
>> with a fresh database, you probably should.
>>
>> -James
>
>
> Ah, ha! That must be it. Much appreciate the tip.
> ...but the problem is I can'
On 2015-09-22 18:12, James Schneider wrote:
Did you delete the previously created migration files? Django won't ask
those questions unless previous migration files exist. If you're
starting
with a fresh database, you probably should.
-James
Ah, ha! That must be it. Much appreciate the tip
> Now I have another: I'm unable to make django forget what I've done
before!
>
> I still get the following error:
> """
> (venv)alex@x301:~/Py/debk$ ./manage.py makemigrations
> Did you rename lineitems.acount to lineitems.dc_type (a CharField)? [y/N]
y
> You are trying to add a non-nullable fiel
On 2015-09-22 17:29, Nikolas Stevenson-Molnar wrote:
It's telling you that your default "date" value will be the same for
every instance of "Journal" you create (essentially it'll be the time
when the migration is created), when you probably intend it to be the
time each Journal entry is created.
It's telling you that your default "date" value will be the same for every
instance of "Journal" you create (essentially it'll be the time when the
migration is created), when you probably intend it to be the time each Journal
entry is created.
Try changing default=timezone.now() to default=tim
Although at the intermediate level with regard to Python,
I'm just beginning with Django, running Ubuntu 14.4LTS
in a venv established by
$ virtualenv -p python3 venv
I set up a journal app with a models.py file and then
changed some of the fields. Now I can't seem to get rid of
the following wa
If you're not changing the schema, you could try using the "-k" option to
keep the database between tests. This way it doesn't have to recreate it
and the indexes each time you run your tests.
On Tuesday, 22 September 2015 11:22:51 UTC-6, Robert F. wrote:
>
> Does anyone have any strategies or t
2015-09-22 12:48 GMT-06:00 sankar vasu :
> {{ post.title }}
try:
{{ post.title }}
If not found then check your project url.py , do you have something like
urlpatterns = [
url(r'^$', include('myapp.urls') ),
]
--
"La utopía sirve para caminar" Fernando Birri
--
You received th
Dear Luis,
FYI:
post_detail.html
---
{% extends "blog/base.html" %}
{% block content %}
{% if post.published_date %}
{{ post.published_date }}
{% endif %}
{{ post.title }}
{{ post.text|linebreaks }
What does the following say?
Entry.objects.filter(pub_date__year=2015)[0].pub_date.month
If it says 7, then its time to delve into the generated SQL for the month
query.
On Tue, Sep 22, 2015 at 10:52 AM, lxm wrote:
> I create a class named Entry,like this:
>
>> class Entry(models.Model):
>
Does anyone have any strategies or techniques for running their unit tests
faster in Django 1.8? My project has seven model modules containing
twenty-one models (none of which are very complex). I run my tests using
the default Django test runner on a 1.86 GHz Mac laptop with 4 GB of RAM
agai
Helo Everybody,
I'm looking for Django/Python developers for startup with location in Posen
(Poland).
Here you can find more information but in polish language:
http://makemymind.pl/oferty/python_developer.pdf
Here you can send me application: monika.otulakow...@makemymind.pl
--
You receiv
I create a class named Entry,like this:
> class Entry(models.Model):
pub_date = models.DateTimeField()
>
this data table named Entry have one record:
- pub_date = '2015-7-14 xx:xx:xx'
then,I excute 'Entry.objects.filter(pub_date__year=2015)' in shell,this
will return right result,
bu
class TicketReview(models.Model):
user = models.ForeignKey(User, null=True)
admin_user = models.ForeignKey(
User, #related_name="admin_user",#here is SystemCheckError
null=True)
Maybe there can be some friendly error raise,rather than raise `
OperationalError: no such ta
On Tue, Aug 25, 2015 at 6:10 PM, Hugo Kitano wrote:
>
> Here it is, very simple:
>
> Submit form:
>
> {% csrf_token %}
> {{ form.as_p }}
>
>
>
Read this section of the manual, particularly the section starting
"Firstly, ...". The problems yo uare having are that you aren't
tellin
According to the error, your pattern starts with $, which is an obvious
mistake.
But the "url.py" you quote has ^.
Maybe it was using an old version, or you haven't copied the right one.
Greetings,
Remco Gerlich
On Sat, Sep 19, 2015 at 9:42 AM, sankar vasu wrote:
> Hi All,
>
> I got below er
17 matches
Mail list logo