I use Python Fabric to deploy. Works great for accessing the remote server,
install dependencies, run linux commands, etc..
But when I try to run *file commands manage.py Django*, NOT work!
Example of my fabfile.py:
with prefix ('source/home/user/env/bin/activate'):
with cd ('path/to/your/p
Hey MacVictor,
So when I needed to do something similar, I landed up hard-coding a dict
with form-name -> form-class in my model definition. Honestly, there is
probably a better way to do it, but that worked fine for my use-case,
though it did feel slightly "not right". Any-how, fwiw, I did someth
On Sun, Jun 30, 2013 at 8:00 PM, Lachlan Musicman wrote:
> Hola,
>
> I read the release notes, and tried to install 1.6. I encountered this
> error:
>
> $ pip install Django==1.6b1
> Downloading/unpacking Django==1.6b1
> Could not find a version that satisfies the requirement
> Django==1.6b1 (f
Hi
I am OK with the javascript side (see the attachment) - I am able to take
meta data and render a form.
My challange is how to use it inside django app.
Thanks
On Sunday, June 30, 2013 5:10:12 PM UTC+3, François Schiettecatte wrote:
>
> Avishay
>
> Take a look at http://jquery.com/ , lots of s
2013/7/1 Harjot Mann
> On Sun, Jun 30, 2013 at 11:18 PM, Amirouche Boubekki
> wrote:
> > You can do this by creating an extra field in the model with the name
> > without vowels in it and doing a simple filter on it ? Is that what you
> need
> > ?
>
> I have a search function which is already wo
OK, so I've got a template tag and a corresponding Node class. In order to
check the value of two template variables in the Node.render method, I'm
using the template.Variable class as specified in the docs. However, I'm
wondering if there is any point to this, given the extra lines of code that
On Wed, Jun 26, 2013 at 10:03 PM, Sayth Renshaw wrote:
> This is oddly the only value difference between rails and django is that
> there is far more online courses and tutorials to say "come join rails".
Yep, they say "come join rails", and not "come join Ruby". This
encourages people to look fo
On Monday, July 1, 2013, Tom Evans wrote:
> On Wed, Jun 26, 2013 at 10:03 PM, Sayth Renshaw
> >
> wrote:
> > This is oddly the only value difference between rails and django is that
> > there is far more online courses and tutorials to say "come join rails".
>
> Yep, they say "come join rails", a
Issuing the "localhost:8000/admin" request in the browser I am presented with
the list of all registered models.
I don't want one of this models to be visualized in that list even though it
is widely used and referenced by other models.
How can I do that without unregistering the model?
Ciao
On Mon, Jul 1, 2013 at 11:37 AM, Sayth Renshaw wrote:
> Is that good though?
>
> Barring 2 scoops there is no new material to recognise and guide users to
> the new features of Django and to get beginner Django developers on board
> quicker.
>
> It leads to bits of info for each python framework b
On Sun, Jun 30, 2013 at 11:24 PM, Mike Dewhirst wrote:
> mulianto and Avraham
>
> Thanks for your suggestions. Dumping data isn't the entire problem - which
> is this:
>
> There will be an *ongoing* need to add new data from tables in one database
> to the same-named tables in another database on
Tom
I'm not a DBA so I'll need to do some quiet study of those references.
Thanks for that.
Cheers
Mike
On 1/07/2013 9:35pm, Tom Evans wrote:
On Sun, Jun 30, 2013 at 11:24 PM, Mike Dewhirst wrote:
mulianto and Avraham
Thanks for your suggestions. Dumping data isn't the entire problem - w
On 1 July 2013 13:02, Mike Dewhirst wrote:
> On 1/07/2013 9:35pm, Tom Evans wrote:
>
>> On Sun, Jun 30, 2013 at 11:24 PM, Mike Dewhirst
>> wrote:
>>
>>> mulianto and Avraham
>>>
>>> Thanks for your suggestions. Dumping data isn't the entire problem -
>>> which
>>> is this:
>>>
>>> There will be
Hi all,
Just getting started with Django.
I'm following the projects on djangobook.com.
After activating the admin interface I don't have .css styling.
I also have no idea how to enable it.
Any help is greatly appreciated.
Thanks!
--
You received this message because you are subscribed to the Go
On Monday, July 1, 2013, Tom Evans wrote:
> On Mon, Jul 1, 2013 at 11:37 AM, Sayth Renshaw
> >
> wrote:
> > Is that good though?
> >
> > Barring 2 scoops there is no new material to recognise and guide users to
> > the new features of Django and to get beginner Django developers on board
> > quic
We are a London based online retail startup (currently in test-launch). The
website is up and running with a fully functioning payment system. Our soft
launch is planned for July 25th.
The website requires some changes and UX improvements before we open up to
public. The following sections on t
On Friday, June 28, 2013 3:47:51 PM UTC+2, Roberto López López wrote:
>
> Two scoops of django is also a good book https://django.2scoops.org/
>
>
> +1
Two scoops of django is great. This book have many good practices and also
very good reviews. You should definitely start it after you read
do
So I have:
views.py:
def datatables(request):
if request.method == 'POST':
form = DataTableForm(request.POST)
if form.is_valid():
model_instance.save()
return redirect('myapp/tabspec.html')
else:
form = DataTableForm()
return render(reques
"""
form.is_valid():
model_instance.save()
"""
form.is_valid():
form.save()
2013/7/1 Nigel Legg
> So I have:
> views.py:
> def datatables(request):
> if request.method == 'POST':
> form = DataTableForm(request.POST)
> if form.is_valid():
> mod
Tried that, still going back to the index page.
Regards,
Nigel Legg
07914 740972
http://twitter.com/nigellegg
http://uk.linkedin.com/in/nigellegg
On 1 July 2013 15:33, Mário Idival wrote:
> """
> form.is_valid():
> model_instance.save()
>
> """
>
> form.is_valid():
> form.save
Oh, but the url 'list'? remove the url 'list' of actions in forms
2013/7/1 Nigel Legg
> Tried that, still going back to the index page.
>
> Regards,
> Nigel Legg
> 07914 740972
> http://twitter.com/nigellegg
> http://uk.linkedin.com/in/nigellegg
>
>
>
> On 1 July 2013 15:33, Mário Idival wrote
I'm looking for a URL shortener I can use with my django project. I
want to be able to email a short link to someone that will expand to
the 'real' URL. Googling I see there's quite a few different URL
shorteners. Anyone here have any experiences with them they would like
to share? Which one would
Ah yes, thank you.
Regards,
Nigel Legg
07914 740972
http://twitter.com/nigellegg
http://uk.linkedin.com/in/nigellegg
On 1 July 2013 15:53, Mário Idival wrote:
> Oh, but the url 'list'? remove the url 'list' of actions in forms
>
>
> 2013/7/1 Nigel Legg
>
>> Tried that, still going back to th
How can I embed jquery in django for searching???
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this grou
Open your template and type:
And code.
2013/7/1 Harjot Mann
> How can I embed jquery in django for searching???
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send
please post details of what you do and what you expected. details django
version, os and version. etc.
Em segunda-feira, 1 de julho de 2013 10h05min31s UTC-3, Jared Nielsen
escreveu:
>
> Hi all,
> Just getting started with Django.
> I'm following the projects on djangobook.com.
> After activatin
Are you using the development server with `python manage.py runserver`? If
you are, the static files for the admin should just work. If they don't,
you may have messed up something in your settings.py.
Otherwise, if you're serving your project from a webserver like Apache or
nginx, run `python
On Mon, Jul 1, 2013 at 9:57 PM, Sandro Dutra wrote:
>
Its not working. I want to jquery ajax for search function.
--
Harjot Kaur Mann
Blog: http://harjotmann.wordpress.com/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
Adding to Jacky Tian's reply, if you are running the django dev
server, check if DEBUG is set to True and `django.contrib.staticfiles`
is added to INSTALLED_APPS in settings.py
See docs about these settings here -
https://docs.djangoproject.com/en/dev/howto/static-files/#configuring-static-files
Hey Harjot,
Could you please provide more details on what you're trying to do? I have a
feeling it's actually outside of what Django does, but there's still lots
of people here who could help you out.
- Gabe
On Mon, Jul 1, 2013 at 1:53 PM, Harjot Mann wrote:
> On Mon, Jul 1, 2013 at 9:57 PM, Sa
On Mon, Jul 1, 2013 at 10:34 PM, Gabriel wrote:
> Hey Harjot,
> Could you please provide more details on what you're trying to do? I have a
> feeling it's actually outside of what Django does, but there's still lots of
> people here who could help you out.
I am workng on an automation project in
Avishay
I am a little confused, the form looks fine to me, are you trying to send the
content to django for validation when the user clicks the 'Validate' button?
You can do that using a REST call to django, or POST the form to django, either
way you are going to have to write some backend code
Say what you try, show your models and your code and maybe we can help or
try to find a package that suit your needs:
https://www.djangopackages.com/search/?q=search
Your first post was not django related and now is lacking information, we
can't guess what you're doing correctly or wrong.
2013/7
Hi
jQuery is not a search engine but a JavaScript library which helps you build
interactive web pages (and much more, see http://jquery.com ) .
If you want a search engine, I suggest you look at SOLR, there are a number of
python libraries which would help you interact with that. A word of warn
On Mon, Jul 1, 2013 at 10:41 PM, Harjot Mann wrote:
> I am workng on an automation project in which I want to make search
> which should be a very good search meanwhile it is working but it is a
> simple search. I want that when I type something in search box it
> should display the clients from d
On Mon, Jul 1, 2013 at 10:50 PM, François Schiettecatte
wrote:
> Hi
>
> jQuery is not a search engine but a JavaScript library which helps you build
> interactive web pages (and much more, see http://jquery.com ) .
>
> If you want a search engine, I suggest you look at SOLR, there are a number
>
I really think your problem is not Django related, I suggest you to learn
JQuery and post your doubts on related group.
2013/7/1 Harjot Mann
> On Mon, Jul 1, 2013 at 10:50 PM, François Schiettecatte
> wrote:
> > Hi
> >
> > jQuery is not a search engine but a JavaScript library which helps you
Harjot... the answer to your question is YES you can use ajax in yours
project... but you do that on yours templates.
you must to download http://code.jquery.com/jquery-2.0.2.min.js in some
directory where django can find when render your template, then in your
template must add this line that San
On Saturday, June 29, 2013 11:32:19 PM UTC-5, Harjot Mann wrote:
>
> Is there any search query in django which can ignore vowels like I want to
> make a query which displays all the clients name who writes their name as
> 'amanjit' or 'amanjeet'.
> It should take take ee=i or anything like thi
Hello! My name is Denis and I can help you.
2013/7/1 George Kazarian
> We are a London based online retail startup (currently in test-launch).
> The website is up and running with a fully functioning payment system. Our
> soft launch is planned for July 25th.
>
> The website requires some chang
Héllo,
Are you looking for an API for a shorturl service or a standalone app to
make a short url service ?
Amirouche
2013/7/1 Larry Martell
> I'm looking for a URL shortener I can use with my django project. I
> want to be able to email a short link to someone that will expand to
> the 'real
On Mon, Jul 1, 2013 at 2:18 PM, Amirouche Boubekki
wrote:
> Héllo,
>
> Are you looking for an API for a shorturl service or a standalone app to
> make a short url service ?
I was looking for a django package that I could integrate into my app
that would allow me to pass it a long URL and it would
Hey Harjot,
i can't provide an easy answer to your question. An Ajax enabled search with
django is nothing, that one programs in 30 minutes especially not if he has no
understanding of query and or ajax.
I'll try to give you some hints but not a complete plug n play solution.
First things fir
Nigel Legg writes:
> template datatables.html:
>
>
>
> Make Tables
>
>
> enctype="multipart/formdata">{% csrf_token %}
>
>
Hi,
I am very confused with these two. I know about apache, but not much. And
then i came across nginx and that its much faster and easier than apache.
Please guide me.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this gro
i installed apache, its strong but seems to nginx its more faster... i'll
planning change to nginx... are some people using nginx for static server
and apache for app server... others says that nginx with lighttpd its more
faster (and better for concurrency).
For now im using only one web-server.
Hello all,
I'm interested in finding-out the best practices for overriding the
form widgets styling by assigning appropriate CSS classes to them. In
particular, I'm trying to determine the best place (tm) to modify that
information when using the generic editing views
(CreateView/UpdateView).
Rig
On 13:20 Mon 01 Jul , Christian Erhardt wrote:
> Hey Harjot,
>
> i can't provide an easy answer to your question. An Ajax enabled search with
> django is nothing, that one programs in 30 minutes especially not if he has
> no understanding of query and or ajax.
>
> I'll try to give you some
I have an app I distribute to clients.
When I run the app on my local machine I connect to http://127.0.0.1/...
When I'm VPN-ed into a client site I connect to the app on their
machine with http://xx.xx.xx.xx/...
When a client is running locally at their site they connect with
http://myappsname.co
It sounds like you want to get the subdomain. Havew a look at the urlparse
module and its usage.
http://stackoverflow.com/questions/6925825/get-subdomain-from-url-using-python
On Tue, Jul 2, 2013 at 2:09 AM, Larry Martell wrote:
> I have an app I distribute to clients.
>
> When I run the app on
On 2/07/2013 10:09am, Larry Martell wrote:
I have an app I distribute to clients.
When I run the app on my local machine I connect to http://127.0.0.1/...
When I'm VPN-ed into a client site I connect to the app on their
machine with http://xx.xx.xx.xx/...
When a client is running locally at thei
Thanks, I'm glad you like it. I can look into some kind of demo, although
Authenticator support is pretty simple. The documentation already links to
Google's URI scheme[1], which has all of the details. All you have to do is
create a TOTP or HOTP device (usually the former), encode the key with
On Monday, July 1, 2013 10:32:53 PM UTC+10, si...@2ndquadrant.com wrote:
> On 1 July 2013 13:02, Mike Dewhirst >wrote:
>
>
>> On 1/07/2013 9:35pm, Tom Evans wrote:
>>
>>> On Sun, Jun 30, 2013 at 11:24 PM, Mike Dewhirst
>>> >
>>> wrote:
>>>
mulianto and Avraham
Thanks for your s
I'm glad you saw my message - if nothing else just so you know this project
is appreciated.
I've got it working with Google's Authenticator.
I had initially planned to use another project out there for my OTP needs
(there's a small number of them that work 'out of the box') because yours
took
On 2 July 2013 05:49, Mike Dewhirst wrote:
> On Monday, July 1, 2013 10:32:53 PM UTC+10, si...@2ndquadrant.com wrote:
>
>> On 1 July 2013 13:02, Mike Dewhirst wrote:
>>
>>
>>> On 1/07/2013 9:35pm, Tom Evans wrote:
>>>
On Sun, Jun 30, 2013 at 11:24 PM, Mike Dewhirst
wrote:
> m
On Mon, Jul 1, 2013 at 7:55 PM, Sithembewena Lloyd Dube
wrote:
> It sounds like you want to get the subdomain. Havew a look at the urlparse
> module and its usage.
>
> http://stackoverflow.com/questions/6925825/get-subdomain-from-url-using-python
Perhaps I wasn't clear. I don't know the URL - I'
56 matches
Mail list logo