Yes, my example is not right. Both should be the same!
nader...@gmail.com schrieb am Donnerstag, 19. August 2021 um 16:59:01 UTC+2:
> I noticed that subassembly 6 has different components in use. Is that what
> you want.
>
> On Wed, Aug 18, 2021, 10:57 AM M. GW wrote:
>
>> Hi,
>>
>> I am now tr
Hey,
thank you. I tried your approach and is looks very promising but I am
getting an error. Here is my view:
*class AssemblyDetailView(LoginRequiredMixin, DetailView):*
*model = Assembly*
*template_name = "engineering/assembly/assembly_detail.html"*
*assem = Assembly.objects.all()*
Simple approach for this is to use try catch block to create proper
field like this:
from django.db import models
try:
from photos.models import Photo
photo_field = models.ManyToManyField(Photo)
except ImportError:
photo_field = None
class Standalone(models.Model):
I really like PyScripter http://pyscripter.googlepages.com/ , its very
fast and has many, many features.
They even have a small readme for Django debugging, here
http://pyscripter.googlepages.com/django
David
http://www.tcl-digitrade.com
--~--~-~--~~~---~--~~
You
I'm just considering using SQLite in small Django project(in
production environment). I have no fear about performance but what
troubles me is whether SQLite can be used in environment like Apache
+mod_wsgi ? As SQLite is file based database, isn't there concurrency
problem?
Can someone explain?
Diino enables you to Store, Share, Access & Protect your important files.
Free online photo Album, Free online auto-matic Back-up, Free Access your
MP3 music online, 2 GB For Free!
That's right, we are happy to give you a whopping great 2GB of secure online
storage
where you can manage and share
ue causes the list to be displayed as a radio select
> list (instead of a select/drop list or something.) The docs
> athttp://www.djangoproject.com/documentation/model-api/say the
> radio_admin is new in the developmental version.
>
> Hope this helps,
> Michael
>
> On Nov
How to define choices for filed that works in admin interface? When I
define CharField as below, the list of choices is computed intially
and doesn't refresh when data changes in Choices table.
type = models.CharField(verbose_name='Type', maxlength=30, choices =
Choice.filter(""), null=False,
> One possible solution would be to append the domain name to the
> username before authentication. The user types in 'bob', then the
> system munges it to 'bob.sub.domain.com' before doing the validation.
### this approach should work . Do you use it for your app? Any
experiences?
--~--~--
I know this topis has been discussed already but I stiil havent find
solution. We would like to build up the application that will be used
by many customers. After registration the customer will access
application via its subdomain name:
eg. cust1 = http://cust1.application.com
cust2 = http://cust
GREAT WORK! Migrations are being discussed for years and now we have
some real-life solution. And I must say - it works and helps. Now we
should get rid of SQL, we need some nice DSL syntax.
David
--~--~-~--~~~---~--~~
You received this message because you are s
Thanks for an advice. I found problem with migrations when running
tests - python manage.py test . It seems that migration is run before
django creates table based on model. Tests should probably not run
migratons at all.
--~--~-~--~~~---~--~~
You received this me
How can 'Python migrations' be used? Can someone explain or place some
example? Where should I put the function?
--- excerpt from docs ---
Using Python migrations
Sometimes it might be easier to do your migration using Python and the
Django models. To define a python migration, simply define a fu
Hello,
Can you share the initial code with us? This approach seems to be
good. Do you have experience on some project?
David
Mike H napsal:
> Hi all,
>
> I've been working on a tool to give me an automated way of altering the
> schemas on servers I deploy my django applications to. I know about
but it's useful for making a
> tagcloud (unfinished)..
In the long run, it may be better to perform another query :)
--
Marko
ICQ: 5990814
I'm not under the alkafluence of inkahol
that some thinkle peep I am.
It's just the drunker I sit here the longer I get.
--~--~
15 matches
Mail list logo