Hi Monte,
You can use a model from one app in another app.
So, let's say that in competitors/models.py (where you define the models
for your "competitors" app), you have a model class named Participant. This
model represents, well, a participant in the tournament. It is likely, as
you stated,
Hello Muhammad,
Yes that does help, thank you very much!
I'm still a little unclear on sharing data between the apps. If it was
a standalone SQL database (not using Django or an ORM), I'd think it
would be appropriate to set up one database, with various tables, shared
between all three
Dear Monte,
Don't consider me an expert but here is how you may want to handle this
scenario.
1. django-admin.py startproject tournaments
Now, cd into the 'tournaments' directory (wherein you have a manage.py
file). From that directory you can create as many different apps (actually
So... if I'm understanding things correctly, a Django 'project' can have
multiple 'apps' in it, and these 'apps' can be reused to some extent
between projects. As in: copy the folder of code for an 'app' from one
project to another (editing things as needed for the new project)?
An app can
Hi Becka,
So it seems like, from reading your code, that I can diagnose your issue.
When a user clicks "sign up", in say the Thursday Shifts Available table,
the browser sends a POST from this form:
{% csrf_token %}
{{shift.meal}}
{{shift.meal}}
{{shift.camper}}
This POST
Hi --
I'm working on a personal project, and have been stuck on this problem for
a bit of time. There don't seem to be examples out there for editing
tables with data. Is this right? Am I looking in the right places? I'm
still pretty new at Django, and learning largely on my own.
I have
It would help if I wasn't using `pattern_name` wrongly. For anyone else who
does something similarly silly, `pattern_name` would be the actual pattern
name, not the name of the url you want to redirect to. In this case, I want
to use `url` parameter with `reverse`.
--
You received this
It would help if I wasn't using `pattern_name` wrongly. For anyone else who
does something similarly sill, `pattern_name` would be the actual pattern
name, not the name of the url you want to redirect to. In this case, I want
to use `url` with `reverse`.
--
You received this message because
url(r'^change-service/$', RedirectView.as_view(pattern_name='new-service',
permanent=False))
url(r'^new-service/$', 'service', name='service'),
Hitting this route gives a 410 error. I've never used the RedirectView so
perhaps I haven't implemented something correctly?
Thanks
--
You received
Can you post the migration file? It looks like one of the fields you're
parsing for date doesn't like the data it's trying to parse (it's expecting
a string type, but that may not be what it's getting),
--
You received this message because you are subscribed to the Google Groups
"Django
Hi Alex,
On Thu, Nov 19, 2015 at 5:09 PM, Alex Yang wrote:
> Is django-nonrel still updating, or will be part of future django
>
I can’t comment on whether nonrel is still updating, but I can say with a
high degree of certainty that it is unlikely to be part of Django at
Umm, one of the things I've found difficult is to determine the logic in
the translation of the class names in models.py to other variables.
And I'm sorry to have not included the models.py. This is the part of
ZoekVraag:
class ZoekVraag(models.Model):
vrager =
On Thursday, 19 November 2015 19:04:05 UTC, Bob Aalsma wrote:
>
> Really sorry Tom, I've been looking at your text and thinking about it for
> most of today, but no penny dropping.
> I'm rather unsure which bits go where, I'm trying to understand this by
> rebuilding the tutorial.
>
> I can't
Add the path of the static folders to STATICFILES_DIRS list in settings,
see
documentation:
https://docs.djangoproject.com/en/1.9/ref/settings/#std:setting-STATICFILES_DIRS
On Wednesday, November 18, 2015 at 7:02:26 PM UTC-2, Dariusz Mysior wrote:
>
> I had a static folder nr 1 in app accounts
Really sorry Tom, I've been looking at your text and thinking about it for
most of today, but no penny dropping.
I'm rather unsure which bits go where, I'm trying to understand this by
rebuilding the tutorial.
I can't seem to get my head around this 'reverse()' part: the reverse() as
such is
*When I migrate the database, I meet some errors, and errors are following:*
> Operations to perform:
> Synchronize unmigrated apps: staticfiles, messages
> Apply all migrations: admin, contenttypes, api, auth, sessions
> Synchronizing apps without migrations:
> Creating tables...
>
I've followed up the suggestions given here but am still struggling with
this problem. My table rows are marked as 'public' or 'private' and the
suggested approaches (and others I could think of) could certainly control
access in such a way that logged-in users could access the whole table and
I'm trying to isolate a small example of the error, but I still haven't
quite diagnosed the problem. I appreciate your help. This what I get in the
"Console" tab:
GET
http://192.168.101.10:66/it_meeting/admin/it_meeting_profiles/institute/126/
[HTTP/1.1 200 OK 771ms]
GET
Yes, it would be in the "Console" tab of that window. You need to open
console using F12 first, then trigger the action. If you can create a
minimal project that reproduces the error, then other people can try to
reproduce it as well.
On Thursday, November 19, 2015 at 8:32:32 AM UTC-5, Jorge
On Wed, Nov 18, 2015, at 07:15, Victor wrote:
> Dear experts,
>
> models.py
>
> class Book(models.Model):
> title = models.CharField(max_length=100)
> author = models.CharField(max_length=100)
> quantity = models.IntegerField(db_column='quantitity',default=0)
> class Meta:
>
I pressed F12 on Firefox, and played around to see if I could find
anything. But I didn't see anything that looked like an error. But I'm not
sure what I am looking for. What else can I do?
On Tuesday, October 27, 2015 at 11:32:33 AM UTC-4, Tim Graham wrote:
>
> Please check the JavaScript
I'm working with django-salesforce and have salesforce models in my
models.py, as well as local models which point to a Postgres database. I am
excluding the salesforce models from the migrate command by using managed =
False in a meta class on the models. However, makemigrations still
https://github.com/iggy/simone
El lunes, 29 de julio de 2013, 12:13:27 (UTC-5), Tomáš Ehrlich escribió:
>
> Hi there,
> I'm looking for django (or python) based webmail, similar to RoundCube
> and SquirrelMail.
>
> I tried djangopackages.com and google search, but it doesn't seem to be
> an
I copied the django distribute into my project folder
thinking it will work well
it works perfectly in one of my machine ,but throw an error below in
another one
Traceback (most recent call last):
File "manage.py", line 12, in
execute_from_command_line(sys.argv)
File
Is django-nonrel still updating, or will be part of future django
What is most used framework when django is used with MongoDB.
Thanks!
-Alex
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving
25 matches
Mail list logo