Django cms and templates

2019-09-18 Thread Perceval Maturure
Dear all I have a django project done with Django 2.1 and successfully made an apphook to the cms page bt the problem is that the template file does not display model data unless if I remove the syntax { %extends base.html %} at the top of the template html file What could be causing this?

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Ryan Gedwill
Hi, I am interested in the position. I am available to work in US, but would need to relocate as I am located in California. Ryan Gedwill > On Sep 17, 2019, at 1:21 PM, Raju N Somanna wrote: > > Hi All > > I've an immediate need for Backend Developers (Python/Django ORM - New York > City)

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Karen Tracey
Please everyone keep in mind that this mailing list has tens of thousands of subscribers. Anyone interested in this job posting should contact the poster directly, not post on this list. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: queryser variable from template to a view

2019-09-18 Thread Jani Tiainen
Well that is the side-effect of capturers they convert value to desired format. You can find documentation about pre-defined converters and how to register your own at https://docs.djangoproject.com/en/2.2/topics/http/urls/#path-converters ke 18. syysk. 2019 klo 19.33 Luca Bertolotti

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Shirley Nelson
Ok I am available. On Tue, Sep 17, 2019, 4:35 PM Raju N Somanna wrote: > Hi All > > I've an immediate need for Backend Developers (*Python/Django ORM* - New > York City) with my client in NYC. As the title suggests my team is looking > for Python/Django specialist, someone who is good

Re: media file upload

2019-09-18 Thread mohammed habib
Make sure to add ‘enctype="multipart/form-data"’ to your form tag, so that the file data is included in when the form is submitted https://stackoverflow.com/questions/4526273/what-does-enctype-multipart-form-data-mean Sent from my iPhone > On 18 Sep 2019, at 17:38, Luca Bertolotti wrote: > >

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Raju N Somanna
Hi All I see some good responses to my yesterday’s post….however *Please Note: This opportunity is in United States-New York City & requires resource to be onsite (No remote). I’m looking for resources with valid US work authorization. *Appreciate if you could communicate the same within

media file upload

2019-09-18 Thread Luca Bertolotti
Hello i can't upload the file, i'm in a debug mode: the urls.is: from django.contrib import admin from django.urls import path, include from django.conf import settings from django.conf.urls.static import static urlpatterns = [ path('', include('polls.urls')), path('admin/',

Re: queryser variable from template to a view

2019-09-18 Thread Luca Bertolotti
Hello if i pass and in the view i do this def exmple(request,myvar): sort = myvar.order_by() i get an error because myvar is a string instead i near a query set Luca Il giorno mercoledì 18 settembre 2019 15:56:19 UTC+2, Jani Tiainen ha scritto: > > Hi. > > to the rescue! > >

django.core.exceptions.ImproperlyConfigured DJANGO_SETTINGS_MODULE

2019-09-18 Thread Brad S
I am trying to get a new server up and running and I am make a n00b error somewhere. django.core.exceptions.ImproperlyConfigured: Requested setting MIDDLEWARE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call

Re:

2019-09-18 Thread Jani Tiainen
Hi. Technically that is impossible. Group by is used to make sql aggregate to know aggregation criteria. Let's take simple example: Let's have table with columns name, job and salary. Rows in table would be: Jani,programmer,100 Ahmmed,programmer,100 Now lets calculate average salary of

Re: queryser variable from template to a view

2019-09-18 Thread Jani Tiainen
Hi. to the rescue! Also it is recommended to use {% url %} tag to construct urls not to hardcode them and once were there Django convention is to end urls to slash. ke 18. syysk. 2019 klo 15.53 Luca Bertolotti kirjoitti: > Hello i need to pass a query set from template to a view: > > > > in

Re: how to use sql select query with pyodbc and django ?

2019-09-18 Thread Cornelis Poppema
I am not using pyodbc, but I imagine you should %s instead of ? as parameter marker. mysql-python actually uses python interpolation to build the query instead of simply replacing the ? signs, so pyodbc might do the same. If that's the case, it makes sense the error says there are 0 parameter

queryser variable from template to a view

2019-09-18 Thread Luca Bertolotti
Hello i need to pass a query set from template to a view: in which way i have to define the urls file path('test//***what to write+++', views.test, name='test'), -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Tosin Ayoola
Can I apply as remote django developer? On Sep 17, 2019 21:35, "Raju N Somanna" wrote: > Hi All > > I've an immediate need for Backend Developers (*Python/Django ORM* - New > York City) with my client in NYC. As the title suggests my team is looking > for Python/Django specialist, someone who

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Shashank Srivastava
interested regards Shashank Srivastava +91 9120029756 On Wed, Sep 18, 2019 at 5:54 PM Abishek Goda wrote: > It's nice that a lot of you want to apply for this position, but please do > unicast it to the OP. That way it is more likely he'd see your email, esp > if he uses the digest format. > >

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Abishek Goda
It's nice that a lot of you want to apply for this position, but please do unicast it to the OP. That way it is more likely he'd see your email, esp if he uses the digest format. Abishek On Wed, Sep 18, 2019 at 8:18 PM Jithendra Kumar wrote: > Hi Raju, > I am interested in this

Re:

2019-09-18 Thread Anirudh Jain
Or you can use filter() instead of all() On Wed, 18 Sep 2019, 17:46 Anirudh Jain, wrote: > a = YouModelName.objects.all().values_list() > b= a.order_by('created_at') > > On Wed, 18 Sep 2019, 17:44 Shakil Ahmmed, wrote: > >> I want to select all field in a model but Grouy By One field.. Suppose

Re:

2019-09-18 Thread Anirudh Jain
a = YouModelName.objects.all().values_list() b= a.order_by('created_at') On Wed, 18 Sep 2019, 17:44 Shakil Ahmmed, wrote: > I want to select all field in a model but Grouy By One field.. Suppose i > have country,people , and onther field in a model i want to group by > country but select all

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Jithendra Kumar
Hi Raju, I am interested in this position. i will work from india i am comfortable in the remote location. Regards, Jithendra Kumar U , PYTHON, PHP & UI Developer 9666 544 180, 6300 639 675 On Wed, Sep 18, 2019 at 2:06 AM Raju N Somanna wrote: > Hi All > > I've an immediate need

Re:

2019-09-18 Thread Shakil Ahmmed
I want to select all field in a model but Grouy By One field.. Suppose i have country,people , and onther field in a model i want to group by country but select all field On Wed, Sep 18, 2019, 6:05 PM Anirudh Jain wrote: > Example: YouModelName.objects.all().order_by('created_at') > > > This

Re:

2019-09-18 Thread Anirudh Jain
Example: YouModelName.objects.all().order_by('created_at') This will sort all the objects in your model on the basis of date of creation on that object. On Wed, 18 Sep 2019, 12:16 Shakil Ahmmed, wrote: > > How to select all field but group by one field > -- > >

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Sipum
Hi Preetham, I know we are in s/w industry and we are well known of copy and paste. But u did it here also.  Thanks. On Wed, 18 Sep, 2019, 11:47 AM Preetham Varanasi, < varanasipreetham...@gmail.com> wrote: > Hi Raju, > I m interested but can remote possible as currently, I m in India? > > >

Order column

2019-09-18 Thread Luca Bertolotti
Hello I have a query that filter the data. I put the results in a table in the template I have make a function that by clkicking on the th order the data,ex. def filter(request): results = My.objects.filter() return render(request, "pro/all.html", {"all": results, }) than in the

[no subject]

2019-09-18 Thread Shakil Ahmmed
How to select all field but group by one field -- Shakil Ahmmed about.me/shakilahmmed

how to use sql select query with pyodbc and django ?

2019-09-18 Thread leb dev
i have a django code that connect to sql server database and i am trying to select values using *like *but once i try it it crash and the system display the below error: ('The SQL contains 0 parameter markers, but 1 parameters were supplied', 'HY000') views.py from

Re: Raju | ITC Infotech - Looking for Backend Developers (Python/Django ORM - New York City )

2019-09-18 Thread Preetham Varanasi
Hi Raju, I m interested but can remote possible as currently, I m in India? Thank you Regards Preetham On Wed, Sep 18, 2019 at 8:05 AM Sipum wrote: > Hi Raju, > > I m interested but can remote possible as currently I m in India? > > Thank you > Regards > Sipum > > On Wed, 18 Sep, 2019, 2:06