Hey! Did you ever find a solution to this problem? I found this
https://github.com/trevoreyre/autocomplete/tree/master/packages/autocomplete-js
and it works well : I fill it with > 26,000 choices and it handles it
better that anything else I have found.
On Sunday, June 5, 2022 at 4:58:07
Have you installed a new environment and django?
On Sat, Dec 15, 2018, 12:53 PM Hello - I'm trying to get Django up and running and I'm having some likely
> trivial trouble. I'm following the "Writing your first Django app"
> tutorial, but I'm getting stuck trying to create the project using
> '
By the way, another approach which is quite convenient is to run unit tests
in docker during build stage (you will need to use settings with sqlite)
Quite convenient in combination with pipeline or CI framework, for example
bitbucket pipelines
Or even on localhost
On Monday, 23 July 2018 19:04:4
Preventing code from using networking is a common approach for unit tests
Firewall is a completely different story and has nothing common with this
matter
On Thursday, 26 July 2018 04:50:58 UTC+8, Melvyn Sopacua wrote:
>
> On dinsdag 24 juli 2018 04:21:07 CEST Kum wrote:
> > Is there a way to pr
There is no such config, but you can make it through socket interface
mocking
https://stackoverflow.com/questions/18601828/python-block-network-connections-for-testing-purposes
You can also split all tests into two groups:
- unit tests - should run without internet and all required requests shou
waiting for update in pip ..
четверг, 12 января 2017 г., 3:09:50 UTC+3 пользователь Gene написал:
>
> After accepting your patch it started to work! :-)
>
> четверг, 12 января 2017 г., 3:04:10 UTC+3 пользователь Gene написал:
>>
>> I managed to reproduce it in small proj
After accepting your patch it started to work! :-)
четверг, 12 января 2017 г., 3:04:10 UTC+3 пользователь Gene написал:
>
> I managed to reproduce it in small project:
>
> see here test case:
> https://github.com/emakarov/chantest
>
> четверг, 12 января 2017 г., 2:26:37 UTC+
; to the same Redis server, it should all intercommunicate. If you can get it
>> reproducible I can definitely help more.
>>
>> Andrew
>>
>> On Wed, Jan 11, 2017 at 3:14 PM, Gene
>> > wrote:
>>
>>> so, should it theoretically work in combinatio
ndrew
>
> On Wed, Jan 11, 2017 at 3:07 PM, Gene >
> wrote:
>
>> I tried first with inmemory, then with asgi_redis.RedisChannelLayer
>> same result
>> working in runserver mode
>>
>> четверг, 12 января 2017 г., 2:06:15 UTC+3 пользователь Andrew Godwin
>
I tried first with inmemory, then with asgi_redis.RedisChannelLayer
same result
working in runserver mode
четверг, 12 января 2017 г., 2:06:15 UTC+3 пользователь Andrew Godwin
написал:
>
> That code looks correct. What channel layer are you using?
>
> On Wed, Jan 11, 2017 at 2
I'm trying to send messages to channels outside of consumers, as said in
documentation but can't get a result.
For example,
in consumers.py I have:
def channel_send(channel, data):
channel.send({
'text': json.dumps(data)
})
def group_send(kind, data):
data = {
'kind
may have more than one supervisor you can use a ManyToMany
> instead of ForeignKey
>
>
>
> On Sunday, March 16, 2014 5:59:59 PM UTC-5, Gene Coetzee wrote:
>>
>> Hi There!
>>
>> Starting out with Django, and was looking for a bit of guidance. I am
>> trying
Very helpful, thanks Mike!
On Sunday, March 16, 2014 7:34:11 PM UTC-4, Mike Dewhirst wrote:
>
> On 17/03/2014 9:59am, Gene Coetzee wrote:
> > Hi There!
> >
> > Starting out with Django, and was looking for a bit of guidance. I am
> > trying to establish a Organiz
Hi There!
Starting out with Django, and was looking for a bit of guidance. I am
trying to establish a Organizational structure for employee/supervisor type
relationships. Since each of these individuals will be a user, I am
extending trying to also take advantage of django's built-in contrib.au
Hi there, I seem to find a particular scenario a lot and I'm wondering
if someone can help me with it. I'm working on a project where I am
selecting from a series of actions to take on a server. These actions
need to be defined in a child class because there is code associated
with them. How
Hi there. I have a multi-table inheritance in my main application like
this:
MailItem->Parcel->LargeParcel
Now I want to have a separate application called 'dispatch' that serves
as a staging area as information comes in about the parcels. So I want
a single table that has a row that corres
When I put a form into my template it comes back blank. Does anyone
know why?
what is in my template
what I get in my browser
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us..
You may have the wrong package- ZMySQLDA is an adapter for zope.
I believe you want this
http://sourceforge.net/projects/mysql-python/files/mysql-python-test/1.2.3c1/MySQL-python-1.2.3c1.tar.gz/download
If you run into problems installing it, you may need to grab the
current release from subversi
Thanks for your help!
Indeed a {% url %} tag was calling a view directly with the
unfortunate name 'settings', which I had renamed. (named url patterns
ftw)
On Nov 16, 9:05 pm, Karen Tracey wrote:
> On Mon, Nov 16, 2009 at 8:02 PM, Gene wrote:
> > I'm getting an e
I'm getting an error that has completely perplexed me: AttributeError:
'Settings' object has no attribute 'rindex'.
The complete traceback is listed below. I get this for any request but
a root request '/'. I'm, using Django 1.1 with mod_wsgi.
The only cases I could find por google of others runn
I am currently running a django site successfully on HM shared
hosting.
As far as I can tell I am using the same setup as you- except that I
haven't yet upgraded to flup 1.0.3.
It looks like your troubles are just with the path, though the WSGI
errors trouble me.
I'll let you know if my site brea
You may still be able to use the built-in django-comments, as it's
easy to customize (especially if your just adding extra fields). You
can read about it here:
http://docs.djangoproject.com/en/dev/ref/contrib/comments/custom/#ref-contrib-comments-custom
Gene
On May 14, 12:59 pm, Oleg
I have looked through the docs and search the group and web. Seems other's
are asking the question, but I haven't seen an answer yet.
class UserProfile(models.Model):
country = models.ForeignKey(Country, core=True)
user = models.ForeignKey(User, unique=True, edit_inline=models.TABULAR,
co
Just wanted to "THANKS" for an absolutely awesome web dev framework.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.co
me of the editing features of jEdit like vertical
selections. It really is the best editor I've ever used, and
probably ever will use. (Though I really bummed that I have to use
Java 1.4 just to get middle mouse pasting to work from Xwindows to a
jEdit buffers.)
I wish the perfect editor/ID
expert at
Python or Django!)
On Wed, Jun 18, 2008 at 10:06 AM, Paul Winkler <[EMAIL PROTECTED]> wrote:
>
> On Jun 17, 1:46 am, "Gene Campbell" <[EMAIL PROTECTED]> wrote:
>> Hello Djangonauts
>>
>> I'm a noob on both Django and Python, so thi
Thanks for the insight! Do you write tests to check for constraints
that are optional in definitions, for example?
address4= models.CharField(max_length=45, null=True, blank=True)
could be written as
address4= models.CharField(max_length=45)
Were is the most reasonable place to test t
t;[EMAIL PROTECTED]> wrote:
>
> Gene Campbell wrote:
>> Hello Djangonauts
>>
>> I'm a noob on both Django and Python, so this question might be easy
>> for the experts out there. I am trying to do test first development
>> during the development of my
Hello Djangonauts
I'm a noob on both Django and Python, so this question might be easy
for the experts out there. I am trying to do test first development
during the development of my model code. (I have lots of experience
with test first coding in the Java world, no practical experience in
the
Many thanks for a very helpful response!!
At this point, I assume the proper practice is to create the users in
a setup() method when unittesting instead of assuming they'll be
brought up automatically when testing. (Sorry, it's been a long day -
I hope that makes sense.)
On Mon, Jun 16, 2008
your doing integer division, and / gets you the number of times 200 is
divisible by 400, which is 0 times in a integer context.
try 200.0/400
if you make one a float, you get a float answer. or this...
>>> size = float(200), float(400)
>>> size[0]/size[1]
0.5
I'm still quite a python/django
jEdit - I've used it for years; it is good but not great for django.
But, it's just a killer editor, I don't care.
On Sun, Jun 15, 2008 at 3:42 AM, mario <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Have you tried using TinyMCE. It works and is compatible with Django
> Templates including bundled temp
I'm a noob, but perhaps this will help the discussion.
http://www.djangoproject.com/documentation/serialization/
"If you're using UTF-8 (or any other non-ASCII encoding) data with the
JSON serializer, you must pass ensure_ascii=False as a parameter to
the serialize() call..."
I saw this be
I, too, intend to donate (money, and hopefully time) as soon as I can.
On Thu, Jun 12, 2008 at 5:51 AM, RKnobelspies <[EMAIL PROTECTED]> wrote:
>
> Well, Djangoproject is in progress of establishing a foundation and
> after the paperwork is done (maybe it´s done already), you should
> probably b
Oops.
"For the changes to take effect, exit out of the Python shell and
enter it again with python manage.py shell. (This is the simplest way
to make code changes take effect.)"
>From http://www.djangobook.com/en/1.0/chapter05/
On Thu, Jun 12, 2008 at 1:01 PM, Gene Campbell <
I'm very new to Python and Django, I'm going through building some
models for the first time.
When I load the models in my shell like this
python manage.py shell
>>> from app.models import ModelClass
then make a change to the ModelClass in models.py
Now when back in the shell how do I reload th
Can't help you with your code below, you might want to provide the
errors, and the import stmts.
For JSON I use simplejson: http://code.google.com/p/simplejson/
hope that helps.
On Fri, Jun 6, 2008 at 5:02 AM, mwebs <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I try to deserialize Json.
>
>
Something like with work for you?
forms.CharField(attrs={'title':'blah'})
check out http://www.djangoproject.com/documentation/newforms/
On Sat, May 31, 2008 at 9:29 AM, skunkwerk <[EMAIL PROTECTED]> wrote:
>
> simple question - how can I add a custom attribute to a form field?
> ie if I have a
anaged the whole Django project, it might be
smart enough.
On Sun, May 25, 2008 at 10:19 PM, Andre Meyer <[EMAIL PROTECTED]> wrote:
> On Sun, May 25, 2008 at 12:13 PM, Kenneth Gonsalves <[EMAIL PROTECTED]>
> wrote:
>>
>>
>> On 25-May-08, at 10:37 AM, Gene Campbe
Is there a way to make it "smart" - show enclosing structure of html
elements, command complete django template syntax, etc.
I'm new to so many of these tools. If there's something better than
Eric for templates, can you recommend? I've used jEdit, but only
for java dev. I can't remember how
That helps thanks. I'm new to python and django, coming from java and
j2ee (gladly). I am about to dig into my very first html mockup
template conversion soon, and I'm sure I understand how easy it is
then.
On Sat, May 24, 2008 at 2:00 PM, Jeff Anderson <[EMAIL PROTECTED]&g
Is there a web template source, like http://www.templatemonster.com/,
that provides templates ready to use with Django. I'm imagining a
site that has different templates from which to choose and download,
but is implemented with the django template language. For example, it
could be a drop in r
Someone recommended http://mochikit.com/ recommended as a good ajax
toolkit. I don't think you'll find design patterns there - like how
to design software.
I'm a noob, and only trying to help.
On Fri, May 23, 2008 at 5:14 AM, unixdude_from_mars
<[EMAIL PROTECTED]> wrote:
>
> Being new to web d
I have used Jira, and I'm looking at Trac today. Is there something
more Djangonic?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegrou
Hi, Thanks the for the reply.
> The reason you must place your templates out from your app code is
> because if you don't do that, anyone could access to the code via
> browser. Just writing the path of your files, and they have the code.
> It could be a security issue.
Umm, if it doesn't matc
rote:
>> On Mon, 2008-05-19 at 19:10 +1200, Gene Campbell wrote:
>> > I totally agree. I took this path over the last 5 years: redhat (1
>> > yr) -> gentoo (3 yrs)-> archlinux (6 mos) -> pclinuxos (1 day) ->
>> > ubuntu (6 mos)
>> >
>> &g
I totally agree. I took this path over the last 5 years: redhat (1
yr) -> gentoo (3 yrs)-> archlinux (6 mos) -> pclinuxos (1 day) ->
ubuntu (6 mos)
I loved Gentoo, taught me quite a bit. Now I love Ubuntu for the
opposite reasons. I like not having to do much to keep my machine
going.
I'm n
Hi everyone,
I am building a site that will require search. It will hold only
about 600,000 web pages, but it may get quite a few users. I am
looking at Solr and pylucene.
Can anyone offer up some experience with these products? Are there
any other ways to impl search like this with Python?
-
48 matches
Mail list logo