Hi Paul,
After a bit more playing around I got it going, there was another unrelated
issue with my code.
Learnt to use the debugging info more effectively in the process which is
great.
Thanks again for your help, very much appreciated.
Kind regards,
Jason
On Thursday, 7 November 2013 04:56:14
2013/11/8 Avraham Serour
> You could create a invitation model, I don't see the problem
> but maybe you don't even need to, if all you want is for a user to ask the
> server to send some emails you can just do that: let the user ask the
> server to send emails.
>
Invitation are probably limited.
I am pretty sure the IN() performance issue in MySQL was fixed 5.5, and
5.6/5.7 certainly don't have an issue with IN() whether you use a bunch of
values or a subquery.
Cheers
François
On Nov 8, 2013, at 2:15 AM, akaariai wrote:
> On Friday, November 8, 2013 8:44:09 AM UTC+2, Robin St.Clair
Thx!
How have I missed this ...
пятница, 8 ноября 2013 г., 9:47:22 UTC+4 пользователь akaariai написал:
>
> On Thursday, November 7, 2013 3:36:17 PM UTC+2, Vaal wrote:
>>
>> Hi
>> How to be in 1.6 with queries that involve multiple databases?
>> Previously recommended to create custom TransactionMi
Hi,
Pycharm ist very good, I'm using it on a daily basis with Django, debugging
included.
Google for debugging django pycharm and you will find loads of hints how to
set this up.
You may also want to look at this review, as it covers a lot of the
features that Pycharm has:
http://andrewbrook
I still didn't get this to work... isn't there anybody that is able to help?
Am Mittwoch, 30. Oktober 2013 10:47:34 UTC+1 schrieb DJ-Tom:
>
> Hi,
>
> given the following model field:
>
> room_setup = models.ForeignKey("roomsetup", verbose_name='Default room
> setup', blank=True, null=True, defaul
answer is simple . Validator would like to check field which is
used for Key. Look like this field is not set before validation.
I would like take a look at model form and part of code before form.is_valid
Many thanks,
Serge
+380 636150445
skype: skhohlov
On Fri, Nov 8, 2013 at 2:29 PM
Hi Frocco
> I need a couple of extra fields in my user model
You can connect a model in your app to the user model and add your
fields there.
Example myapp/models.py:
...
from django.contrib.auth.models import User
...
class Profile(models.Model):
user = models.OneToOneField(User, related_n
Avraham Serour Sending the email its not my problem.
I start to think doing by my self an invitation app for what i need... so
thank you all you guys!!
See ya.
2013/11/8 Amirouche Boubekki
>
>
>
> 2013/11/8 Avraham Serour
>
>> You could create a invitation model, I don't see the problem
>> b
Tell us when you are done, maybe share it on github ?
2013/11/8 Rafael E. Ferrero
> Avraham Serour Sending the email its not my problem.
> I start to think doing by my self an invitation app for what i need... so
> thank you all you guys!!
>
> See ya.
>
>
>
> 2013/11/8 Amirouche Boubekki
>
>>
You can define your Custom User Model in your models.py (
https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#substituting-a-custom-user-model
)
and then in your settings specify with AUTH_USER_MODEL = 'myapp.MyUser'
On Tuesday, March 26, 2013 9:51:21 PM UTC+1, frocco wrote:
>
> Hello
>
Hi to all friends !
I am working in django project its has many apps with their default db
configured.
So now i need to read (and possible write) to third DB (mysql) and i found
a thread[1] here about it.
There are some suggestions about write ReadOnly objects, redefine save
methods but i'm not t
I got that you are executing a raw sql query every time you insert a new
OrderDetail record. But can I ask why are you doing this?
I think you should really need to redesign your models..
On Thursday, November 7, 2013 10:04:33 AM UTC+1, vittorio wrote:
>
> I made an effort to simplify my app an
I think the problem here is that when you create the superuser, the related
field will not be created.
You should add sistema = models.ForeignKey('Sistema', null=True) or sistema
= models.ForeignKey('Sistema', default=1) where 1 is a placeholder
'Sistema' object that you have created.
I suggest
Yes, Off Course... im doing an Simple Fixed Asset Management System who can
support multiple litle companies, guided by tickets.
Thats why a registered user should not see any stuff from other group
(or company)
2013/11/8 Amirouche Boubekki
> Tell us when you are done, maybe share it on github
Hello Paolo,
I really don't get your question. The templates are still used in Django.
You should be aware of the Model View Controller philosophy. Actually in
Django is Model Templates (as View) View (as Controller).
PS: If you are going to use Python 3 be sure to start with Django 1.6
(releas
On Fri, Nov 8, 2013 at 1:44 AM, Robin St.Clair wrote:
> The last time I checked the use of IN, all the records from the database in
> the query were brought back to the workstation, rather than being processed
> on the backend and only the results returned to the workstation.
Django ORM's __in o
Hi,
I am building a new site in Django 1.4 and I'm using the South migration
tool to keep my dev MySQL database in sync with changes made to my models.
It should be said that I use one MySQL database account to serve various
Django projects/apps (confusing, yes). It all seems to be working fine
un
I only had to query external databases.
I've created my models as managed=False and implemented a custom manager
that redefined the default database configuration. We did not had
situations where depending on a certain condition the target database would
change, but this worked just fine.
On Fri
'bus.certs.listing' is this entry in your installed apps referring to the
"Listing" models perhaps? We can't really help you with much more info btw.
On Friday, November 8, 2013 4:55:04 PM UTC+1, Keith Edmiston wrote:
>
> Hi,
>
> I am building a new site in Django 1.4 and I'm using the South migr
I want to copy images from one model to another within the project. Suppose
these are my models:
class BackgroundImage(models.Model):
user = models.ForeignKey(User)
image = models.ImageField(upload_to=get_upload_file_name)
caption = models.CharField(max_length=200)
On Fri, Nov 8, 2013 at 11:39 AM, George Silva wrote:
> I only had to query external databases.
>
> I've created my models as managed=False and implemented a custom manager
> that redefined the default database configuration. We did not had
> situations where depending on a certain condition the ta
Let me explain this better.
I've created a custom manager, in which I replaced the default database
alias it should connect.
class ExternalManager(models.Manager):
"""
Manager customizado para buscar os dados no banco legado.
"""
alias = None
def __init__(self, alias=None):
I will check it ! thanks !
On Fri, Nov 8, 2013 at 12:19 PM, George Silva wrote:
> Let me explain this better.
>
> I've created a custom manager, in which I replaced the default database
> alias it should connect.
>
> class ExternalManager(models.Manager):
>
>
> """
>
> Manager customizado
Sorry...I was trying to be careful of not putting so much info in the email
that it became too much.
My project structure is (in part):
--bus/certs
|_ application
|_ __init__
|_ models.py --> empty, using common/models.py & bus_models/models.py
|_ urls.py
|_ views.py
Can you post the line in urls.py that is calling the view function?
On Friday, November 8, 2013 6:48:28 PM UTC+1, Keith Edmiston wrote:
>
> Sorry...I was trying to be careful of not putting so much info in the
> email that it became too much.
>
> My project structure is (in part):
> --bus/certs
>
bus/certs/urls.py:
from django.conf.urls import patterns, url, include
from django.conf import settings
from bus.certs.views import index
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^apps/bus/certs/$', index),
(
Hi there,
I want to collect some statistics about a card game.
So i have three models in my app:
Player = holds the player data
Hand = the data for one round
Partie = The data for a complete game
class Player(models.Model):
name = models.CharField(max_length=200, unique=True)
color = m
I'm using Apache 2.4 and Python 2.6.8. We have several different virtual
hosts and the DJANGO_SETTINGS_MODULE is defined within each virtual host.
However, the wsgi file gets loaded before the settings.py file. This
works fine under Django 1.5.1 as settings aren't referenced from within the
Hello, currently I try to use the Django Message Framework, but it will
always fail with:
> You cannot add messages without installing
django.contrib.messages.middleware.MessageMiddleware
My middleware, etc:
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.co
After upgrading to 1.6 yesterday, our production instance is exhibiting
some odd behaviour with prefetch_related.
As the example below shows, when using prefetch_related on the foreign
field (viewed_cm), the returned instance apparently does not have this
foreign field set, even though the earl
Hello Django users!
Today I sat down and wrote a native template Loader for Chameleon support
in Django. For those not familiar with this template engine, it was used
in the previously infamous Zope and later Plone web frameworks. It uses
mostly XHTML formatting and documentation generation
Hii All,
I am new to django please help me i want to an example project in this
funtionality insert ,edit ,update delete data from database
Thanks
Suvankar
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and
33 matches
Mail list logo