Re: About Django performance

2020-02-28 Thread Gil Obradors
Hi ! I 'm curious too! How much data? With CPU and RAM, may be the problem will be in Wifi Channel, instead of at the server. You will explain us ;) Thank you! Missatge de 이바울 del dia dv., 28 de febr. 2020 a les 11:33: > I'm trying to build a server. > > Data transmitted from the wireless

Re: Many to Many relationships in template

2020-02-27 Thread Gil Obradors
Hi! https://docs.djangoproject.com/en/3.0/ref/contrib/admin/#modeladmin-objects or https://docs.djangoproject.com/en/3.0/intro/tutorial07/#writing-your-first-django-app-part-7 Missatge de Robb Rodirguez Jr. del dia dv., 28 de febr. 2020 a les 1:14: > Good day guys, im new to django im having

Re: django context data into javascript

2020-02-25 Thread Gil Obradors
Hi! The context is a dictionary mapping template variable names to Python objects. from https://docs.djangoproject.com/en/3.0/intro/tutorial03/ May be you need to test with a dict nor string directly. I haven't test a direct variable. Try not using JS, first resolve dict context in html , then

Re: Problem with Admin Page

2020-02-09 Thread Gil Obradors
Hi Alessandro, can you report python version and django version? Missatge de Alessandro D' Oronzo del dia dg., 9 de febr. 2020 a les 19:38: > Hi everyone, > I have a problem with local web server and admin page. > When I try to connect to admin page the web server of Django close without >

Re: add icmp test

2020-01-26 Thread Gil Obradors
Of course, as pure python https://stackoverflow.com/a/10402323 Missatge de paulo milo escano del dia dg., 26 de gen. 2020 a les 16:41: > can django support ping test, such as using subprocess module > > -- > You received this message because you are subscribed to the Google Groups > "Django

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-07 Thread Gil Obradors
Oh yes, sorry, i didnt read right... Mn, no more output to paste? Do you use an IDE? i have django 2 and 3 working without this behaveor Have you introduced changes to admin? El dc., 8 de gen. 2020, 7:55, Gil Obradors va escriure: > Hi, 302 response status isnt an error >  &

Re: Django >=3 closes dev server when trying to log in in admin

2020-01-07 Thread Gil Obradors
Hi, 302 response status isnt an error  https://developer.mozilla.org/es/docs/Web/HTTP/Status/302 El dc., 8 de gen. 2020, 2:29, Cristhiam Gabriel Fernández < cristhiang...@gmail.com> va escriure: > Greetings > > From version 3 I'm getting this error. When I try log in in admin site > django

Re: Necessary to learn React/ Angular with backend Django

2020-01-07 Thread Gil Obradors
My opinion, If you want a great powerful user interface ( and experience) of the front end, yes, interesting to spend hours. If the users won't appreciate it, no. Other voice... Good luck! Missatge de Karan Mittal del dia dt., 7 de gen. 2020 a les 19:38: > Hello friend, > In my opinion if

Re: Integrate Django with React

2020-01-03 Thread Gil Obradors
Hi Santhosh, Nice tutorial https://www.youtube.com/watch?v=Uyei2iDA4Hs Basically, React is for a nice User Interface, django templates is not exactly the essence. The advantage is a frontend programed as a component , better UI. Django frontend is a MVC renders with django templates. All of

Re: How to use django-request module to log all the user activities in a table?

2019-12-26 Thread Gil Obradors
Hi bro, there's a logger from django.requests Maybe is your solution https://docs.djangoproject.com/en/3.0/topics/logging/#django-request Missatge de Santhosh sridhar del dia dj., 26 de des. 2019 a les 10:47: > I'm using Django 1.8 version. Need to know how to use django-request or > any

Re: Integrate React with Django

2019-12-24 Thread Gil Obradors
Yes! The advantatge is a frontend component bases programed. Very interesting for a great UI interface It requires time I started with this https://www.youtube.com/watch?v=Uyei2iDA4Hs And next, I countinued with this Software Enginner _> https://codewithmosh.com Good luck Missatge de

Re: how to send to sms to moblie number on one click at time to 25 numbers from django website ,,,,,, please anyone here for guidance

2019-12-17 Thread Gil Obradors
Hi Jani! First you need a provider able to send SMS via rest-API Second,write some methods codes to talk to this api, python is good. Third, make a frontend, to call this methodos via web. You can start with static content via django templates and requests , for example Good luck!

Re: Python problem

2019-12-15 Thread Gil Obradors
Chetan, you're a genius! Missatge de Chetan Ganji del dia dg., 15 de des. 2019 a les 16:28: > # input: h123456ello > # output: o123456lleh > > # input: th34isisast56ring3 > # output: gn34irtsasi56siht3 > > > order = {} > characters = "" > input_string = "h123456ello" > # input_string =

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
This is the link ? Edit Jira Info My project level urls.py is: from django.contrib import admin from django.urls import path, include from django.conf.urls import url import debug_toolbar urlpatterns = [ path('admin/', admin.site.urls), path('', include('homepage.urls')),

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
Easy, urlpatterns from editLit.urls must be: urlpatterns= [ path('jira/', views.editLit.as_view(),name='editLit'), ] Missatge de Patrick Carra del dia dt., 26 de nov. 2019 a les 22:09: > Yea! This toolbar is an awesome tool thanks for the tip. So now I guess > I'm not understanding how

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
Yeah! Can you see the error? *WHERE* "circuitinfotable"."circuitid" = 'edit/circuit/STTK-100G-18040-01-WRBB' would be : *WHERE* "circuitinfotable"."circuitid" = 'STTK-100G-18040-01-WRBB' Link incorrect, or uls pattern incorrect Edit Circuit Info Missatge de Patrick Carra del dia dt., 26 de

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
After the page is loaded, click to SQL queries and paste or make a screenshot of the content. In this tab you will see all transactions to DB Missatge de Patrick Carra del dia dt., 26 de nov. 2019 a les 19:57: > Okay I have worked on it I do have the toolbar on there but it's not > display

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
and Configuring Internal IPs The Debug Toolbar is shown only if your IP address is listed in the INTERNAL_IPS setting. This means that for local development, you *must* add '127.0.0.1' to INTERNAL_IPS

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
Can you try to add to the view class this argument? https://docs.djangoproject.com/en/2.2/ref/class-based-views/mixins-single-object/#django.views.generic.detail.SingleObjectMixin.pk_url_kwarg pk_url_kwarg = 'circuitid' And check what query is doing with django-debug-toolbar Missatge de Gil

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-26 Thread Gil Obradors
May be, Or you aren t querying for circuitid ( by view class code) , normally the urls are with the int pk parameter... For this, django-debug-toolbar can help to see what are you quering to db, i recommend to install and play with this great tool I will read about, i want to know whats

Re: Trying to update a record using UpdateView Error: Circuitinfotable matching query does not exist

2019-11-25 Thread Gil Obradors
Hi! Matching query doesn't exists says that this entry with this id not exists in db Are you sure that this object exists? STTK-100G-18040-01-WRBB Can you open a shell and: from xxx.models import Circuitinfotable obj = Circuitinfotable.objects.all() print(len(obj)) obj =

Re: What technology can Django do to paginate the content page of a single article Do not use front-end JS to page content. If you just use Django technology to page a single article content page.

2019-11-17 Thread Gil Obradors
Hi zbpython-cn, I don't know any. You must create it. It depends of the origen of the article, db or template Isn't difficult to achieve Best regards Missatge de zbpython-cn del dia ds., 16 de nov. 2019 a les 14:53: > What technology can Django do to paginate the content page of a single >

Re: How to retrieve data from different related model (This post was posted earlier on but was deleted due code not being clear)

2019-10-24 Thread Gil Obradors
What field of Category you want to get from post model ? name? maybe k.category instead of k.name? ( template) Or explain better :P Missatge de Benedict Uwazie del dia dj., 24 d’oct. 2019 a les 21:19: > Thanks, but this did not help > > On Thursday, 24 October 2019 19:43:51 U

Re: How to retrieve data from different related model (This post was posted earlier on but was deleted due code not being clear)

2019-10-24 Thread Gil Obradors
Hi, I don't know if I understand what you mean... Is this good for you? from first_app.models import Author, Category, Post def post_from_cat(request, cat_id): b = Category.objects.get(pk=cat_id) return render(request, 'first_app/index.html', {'key': b}) Missatge de Benedict Uwazie del dia

Re: Exception Value: (1048, "Column 'active_year_id' cannot be null")

2019-10-20 Thread Gil Obradors
Maybe you wan to fill this field, so last mail isn t the solution. Can you paste the code of form? Html amb form py? The user selects the year, or its automatically filled in view post class ? El dl., 21 d’oct. 2019, 7:27, Gil Obradors va escriure: > Hi! > This field cant be null &

Re: Exception Value: (1048, "Column 'active_year_id' cannot be null")

2019-10-20 Thread Gil Obradors
Hi! This field cant be null Add null=True, blank=True To parameters of active_year and solved El dg., 20 d’oct. 2019, 18:58, Rain va escriure: > Hello Guys Hopefully someone can help me on this.! any help i appreciate > it. > > My Problem is This.. I do my research and still cant figure

Re: Django admin no recuerda mi superusuario

2019-10-13 Thread Gil Obradors
Hi Francisco! What are you trying to do? Step to step What is the expected behavior? What is the real behaviour? Are you talking to save the password to the browser? Missatge de DANIEL URBANO DE LA RUA del dia dg., 13 d’oct. 2019 a les 22:03: > Cuando ejecutas un migrate se crean las tablas

Re: getting error when i changed database sqllite3 to mysql

2019-10-05 Thread Gil Obradors
HI! Maybe this tutorial can help you https://medium.com/@a01207543/django-conecta-tu-proyecto-con-la-base-de-datos-mysql-2d329c73192a (in Spanish) Missatge de Gulsher Khan del dia ds., 5 d’oct. 2019 a les 23:36: > I trying to change default database(sqllite) which is given by the Django. > I

Re: Reg: Django Error

2019-10-05 Thread Gil Obradors
Hi, Try without regex, with int indication: path('articles//', views.year_archive), https://docs.djangoproject.com/en/2.2/topics/http/urls/ Missatge de anil polineni del dia ds., 5 d’oct. 2019 a les 3:55: > @ Dear all, > > > please reslove the djangoerror > > -- > You received this

Re: HOW TO DISPLAY THE COLLAPSED DATA IN CARD using django and bootstrap

2019-09-28 Thread Gil Obradors
How do you know? Not seeing in you code If it were in my desk, I will try first copy a example demo code. If works, then template it, but not the second before the "core" isn't working Console log browser can give help Missatge de leb dev del dia ds., 28 de set. 2019 a les 10:27: > js and

Re: HOW TO DISPLAY THE COLLAPSED DATA IN CARD using django and bootstrap

2019-09-28 Thread Gil Obradors
HI! Can you paste console log from browser? Maybe you can see and error here , when you collapse down/up Can you assure that js files an css files from bootstrap are correctly loaded? ( network tab of browse debug tools) Missatge de leb dev del dia ds., 28 de set. 2019 a les 9:57: > I have

Re: about {% with %}

2019-09-10 Thread Gil Obradors
Hi Mohamed! It's the open tag for django template language. Very similar to jinja2 https://docs.djangoproject.com/en/2.2/ref/templates/language/ Missatge de mohamed khaled del dia dt., 10 de set. 2019 a les 17:55: > what the {% with %} actually does ??? > > -- > You received this message

Re: Django + Python new tool creation

2019-09-09 Thread Gil Obradors
> Nullam at erat dignissim, dapibus nibh ac, dictum nibh. > Owner: Joel > Comments: Maecenas venenatis ligula in ipsum dignissim, nec > imperdiet nisl tincidunt. > Nam in magna molestie, scelerisque lorem in, elementum diam. > Pellentesque scelerisque enim eget ipsum varius pellentesque. >

Re: Django + Python new tool creation

2019-09-09 Thread Gil Obradors
Welcome, one suggestion: -Paste code direct to email or with paste tools. Not attaching files Welcome Missatge de Raakesh Vanaraj del dia dl., 9 de set. 2019 a les 18:39: > Good day, > > I'm new to Django and a very new beginner, I've to create a tool for my > with Django so I've create one

Re: How to create a a drop-down menu from the logged in username

2019-09-09 Thread Gil Obradors
Combination of Backend ( django view , for manage data) Template ( bootstrap nav dropdown menus, for example ) El dl., 9 de set. 2019, 10:29, Sandip Nath va escriure: > Am new to Django. Am trying to build a car rental web site. After logging > in the home page navbar at the top is showing

Re: Django River - ModuleNotFoundError: No module named 'river'

2019-09-01 Thread Gil Obradors
:26, Kean va escriure: > Hi Gil, > > Thank you for the response. > In the first step, I closed the venv, then installed river, (please see > process below) > This is when I get the issue of Module not found. > > please clarify, are you saying solution is to install django-

Re: Help with Django

2019-09-01 Thread Gil Obradors
Welcome @Elmaco7 You're in the right side! When you understand this tutorial, you will be prepared to start designing your project, with the help of thousands of more advanced online tutorials https://docs.djangoproject.com/en/2.2/intro/tutorial01/ Good luck! Missatge de Gabriel Araya Garcia

Re: Django River - ModuleNotFoundError: No module named 'river'

2019-09-01 Thread Gil Obradors
Hi, If you deactivate ( close?) venv, and then you install with pip3, it will be installet to system. If you are using venv, pip3 with venv activated Bests djangos, Missatge de Kean del dia dg., 1 de set. 2019 a les 21:56: > Hi, > > New to Django, but can't seem to get django to run the

Re: Call a URLpattern via POST from a Django view through HttpResponseRedirect

2019-09-01 Thread Gil Obradors
Maybe the solution is here https://docs.djangoproject.com/en/2.2/ref/urlresolvers/#django.core.urlresolvers.reverse https://stackoverflow.com/questions/13202385/django-reverse-with-arguments-and-keyword-arguments-not-found Add a name at this view, and return a reverse with kwargs Good luck

Re: Hi, I'm new django. I want to learn Django. What's the first step.

2019-09-01 Thread Gil Obradors
I started with django official tutorial : https://docs.djangoproject.com/en/2.2/intro/tutorial01/ Nice to start APPs, and continue with admin customizations. Welcome and good luck! Missatge de Jorge Luis Callalle Torres del dia dg., 1 de set. 2019 a les 15:37: > Hi, I'm new django. I want to

Re: page not found but url exists

2019-08-26 Thread Gil Obradors
admin/ urls are working fine? if you put print('hello0) at first line inside cregister, you see at the console? If yes the problem is in redirects Missatge de Kean del dia dl., 26 d’ag. 2019 a les 19:32: > Hi Gil, > > please see > > views.cregister > > def cregister

Re: page not found but url exists

2019-08-26 Thread Gil Obradors
Hi! Can you paste views.cregister and projectname/urls.py ? Missatge de Kean del dia dl., 26 d’ag. 2019 a les 19:10: > Hi, > > I'm new to Django. I created several urls, in urls.py, however, when I try > to navigate to the URL it says page not found. > Page not found (404) > Request Method:

Re: Unable to display two forms in a view

2019-08-24 Thread Gil Obradors
t; context = {'payment': payment, 'form': form,} >> return render(request, 'payment/updatePayment.html', context) >> >> > Thanks for you help > > On Saturday, August 24, 2019 at 9:24:03 AM UTC-7, Gil Obradors wrote: >> >> Of course, you don't have p

Re: Unable to display two forms in a view

2019-08-24 Thread Gil Obradors
Of course, you don't have poppulated payment_form ? Only initializated, payment_form = AddPaymentForm() If I'm not helping you, please attach more code good luck! Missatge de chevalier del dia ds., 24 d’ag. 2019 a les 17:37: > I have two related models (Sim and Payment - A Sim can have

Re: How to refresh part of a Django page with AJAX?

2019-08-20 Thread Gil Obradors
HI I subscribe all @Joseph said, and add: For url dispatcher, can you try with very different stamentlist regex? I think you can't have 2 same regex, or if you want, you may treat this route inside classview About AJAX,I can't help no more, I'm newbie with AJAX, I think that is more

Re: django-admin error

2019-08-18 Thread Gil Obradors
1.-Plese detail more : "But it not run" ? Any error? Admin screen withous the model? You can try doing with the same with decorator and class: from django.contrib import admin @admin.register(Pacientes) class PacientesAdmin(admin.ModelAdmin) pass Share errors, screen, behaveour... 2.- I

Re: Cómo se pronuncia Convert date field to value 1

2019-08-16 Thread Gil Obradors
Hi! For mi, You need 2 models: -users -attention Users save the persons Atention save one attend event Atention, will have : -date datefield, user foreignkey(users) Then you can do query sets like, how many attentions has Pepito. How many attentions has Pepito this mounth, last days...

Re: request for advice

2019-08-11 Thread Gil Obradors
For starting sqlite is enought! And better if you havn t got skills about sysadmin and postgresql Postgresql have more benkmarch, you can search posts in google But is not good idea buy a bus to carry 2 people. ( my opinion ) El dg., 11 d’ag. 2019, 18:51, ajoeiam va escriure: > Greetings >

Re: Is Django + (detailed below) a good fit for this kind of application?

2019-08-11 Thread Gil Obradors
Welcome, With this information, yes! El dg., 11 d’ag. 2019, 18:51, ajoeiam va escriure: > Greetings > > Am beginning the odyssey of not only learning Django but also Python3 > (ain't life interesting - - - - grin). > > Working on an application taht I would like to work something like this:

Re: How to overwrite the Django Admin Panel

2019-08-05 Thread Gil Obradors
Hi, If you are a beginner I don't recommend, BUT, is an interesting practice or challange , so go ;) https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates Missatge de Pravin Yadav del dia dl., 5 d’ag. 2019 a les 13:08: > Hello Friends, > > I want to overwrites

Re: formset has_changed always return true.

2019-06-11 Thread Gil Obradors
Can you paste codes? Forms.py and views.py El dc., 12 de juny 2019, 1:24, Mei B va escriure: > Yes I am already instantiated the form and check has_changed after. > > On Tuesday, June 11, 2019 at 8:59:46 AM UTC-7, Gil Obradors wrote: >> >> Hi! >> Have you instan

Re: formset has_changed always return true.

2019-06-11 Thread Gil Obradors
Hi! Have you instanced first de form? Maybe this code from djano help you from django.http import HttpResponseRedirectfrom django.shortcuts import render from .forms import NameForm def get_name(request): # if this is a POST request we need to process the form data if request.method ==

Re: Periodic tasks set through django admin is not working exactly at given interval.

2019-06-07 Thread Gil Obradors
Paste code! One thing is every 30 minutes, Another at 30minute for each hour, May be you have the second El dv., 7 de juny 2019, 16:48, srikanth kadiyala < srikanthkadiyal...@gmail.com> va escriure: > Hi, > I set my periodic tasks in django admin to run for every 30 minutes > through

Re: What's wrong with this model

2019-05-27 Thread Gil Obradors
Yes, your are adding new field elogin. Table contains data You must specify a default on all existing rows, selecting 1 and writing to console something Missatge de Saeed Pooladzadeh del dia dl., 27 de maig 2019 a les 23:52: > Hello > > I made this model and think everything is fine: >

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Gil Obradors
. >>> (Juan 15:7 DHH) >>> Bendito el varón que se fía en el SEÑOR, y cuya confianza es el SEÑOR. >>> (Jeremías 17:7 RV2000) >>> >>> >>> >>> El jue., 25 abr. 2019 a las 9:39, Tatiana Mesa (< >>> tatianamesa...@gmail.com>) escri

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Gil Obradors
ra hacer un tipo de update, pero sobre ese mismo formulario, es como si >> el usuario viera lo que guardo en un principio y pueda decidir si quiere >> cambiarlo o no >> >> El jue., 25 de abr. de 2019 a la(s) 09:44, Gil Obradors ( >> gil.obrad...@gmail.com) escribió: >

Re: Mostrar datos en un formulario (inputs) en un template.

2019-04-25 Thread Gil Obradors
Buenas, Un update, en caso que los datos ya existen quizas? Sino no lo entiendo? El dj., 25 d’abr. 2019, 16:09, va escriure: > Buen día, > > Vengo trabajando con un formulario en html que captura los datos mediante > AJAX y los guarda en una base de datos postgres. > > Ahora quiero

Re: CSRF Verification fails in production for Cross Domain POST request

2019-04-25 Thread Gil Obradors
When I have problems with csrf and POST, I usually put a print(request.POST) into a view function, to see what the framework recives from client help you? Missatge de suresh del dia dj., 25 d’abr. 2019 a les 8:20: > The HTTP_X_CSRFTOKEN header does not match what is inside the csrftoken >

Re: url not redirecting?

2019-04-21 Thread Gil Obradors
Hi! You have two entrys with same name path('', views.post_new, name='new_post'), path('', TemplateView.as_view(template_name='new_post.html'), name= 'new_post'), Try to change one Regards El dg., 21 d’abr. 2019, 16:18, va escriure: > Hello, i'm attempting to redirect to a 'new post'

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Gil Obradors
(request.POST) return render(request, 'demanoaltaform.html', {'form' : form}) Missatge de Mayur Bagul del dia ds., 20 d’abr. 2019 a les 9:31: > hello gil, > > thanks for tutorial link i will check it out that one. > As you gave solution of calling a function via view i did so

Re: How to provide function calling event for button in django html templates ?

2019-04-20 Thread Gil Obradors
Hi! If you want you can re-use django.contrib.auth package Here one tutorial: https://wsvincent.com/django-user-authentication-tutorial-login-and-logout/ Otherwise, you can do a POST to a URL, and this url (url.py) call a function ( views.py) Good luck! Missatge de Mayur Bagul del dia ds.,

Re: Why my email goes to spam?

2019-04-20 Thread Gil Obradors
May be DKIM isn't correctly configured? Authentication-Results: mx.google.com; dkim=fail header.i=@myaa.ir header.s=2019 header.b=Q8G8809R; Missatge de Mohammad Etemaddar del dia ds., 20 d’abr. 2019 a les 8:47: > Here it is: > > > > Delivered-To:

Re: Venv

2019-03-30 Thread Gil Obradors
You do it: source /bin/activate Missatge de John del dia ds., 30 de març 2019 a les 19:32: > Good evening > > I've created and activated venv like this: > $ python3 -m venv > $ source /bin/activate > > Now Ive ‘deactivate’ the venv > > How do I re-activate please? > >  > > > -- > You received

Re:

2019-03-30 Thread Gil Obradors
Hi Carol, The next, for example, can be doing all the official tutorial : https://docs.djangoproject.com/en/2.1/intro/tutorial01/# This was my way There are books too, I recommend you this editorial: https://www.packtpub.com/ Good luck!! Missatge de carol caro del dia ds., 30 de març

Re: Link does not work correctly

2019-03-10 Thread Gil Obradors
Hi I can't give you the exactly response, But I know that you are playing with href=url direct, without using django template code I suggest you to change de href of register from about, to a href with django template code: Something like : href="{% static 'greenfapp/main.css' %} But I can't see

Re: Missing manage.py & settings.py

2019-03-06 Thread Gil Obradors
For create it yourself from 0 El dj., 7 de març 2019, 01:05, lujate va escriure: > What purpose does startapp serve when you're only using a pip installed > app? > > > > On Wed, Mar 6, 2019, 11:12 AM ambesh chand shahi wrote: > >> You should first type django-admin startproject "your project

Re: Hi all

2019-03-05 Thread Gil Obradors
With httpresoponseredirect! https://docs.djangoproject.com/en/2.1/ref/request-response/#httpresponse-subclasses Missatge de l'adreça del dia dt., 5 de març 2019 a les 19:31: > how can i redirect to Login.html page > > -- > You received this message because you are subscribed to the Google

Re:

2019-02-20 Thread Gil Obradors
Or python manage.py or python3 manage.py Or you not have manage.py inside your dir Not recommended( i think isn best practice to put +x the file manage.py and execute directly ./manage.py ) Can you paste ls ? El dc., 20 de febr. 2019, 13:16, bhushan patil va escriure: > Guys I am not able

Re: My django-admin startproject (project name) is not working

2019-01-31 Thread Gil Obradors
Please , can you copy cmd reply? Thanks El dj., 31 de gen. 2019, 12:23, Vkash Poudel va escriure: > My django-admin startproject (project name) is not working > > I have tried alot and alot.But theres always a problem in the cmd > > -- > You received this message because you are subscribed to

Re: Begginner

2019-01-30 Thread Gil Obradors
Hi Franjhohn, With a bit knowleges of python, and time you can start here : https://www.djangoproject.com/start/ Read and do the first app that is in the manual. Or you can start with a book : I recommend you this editorial https://www.packtpub.com/ Else at the beginning is not easy, the

Re: Request works with sqlite not with Postgres

2016-04-04 Thread Tazo Gil
2F1.9%2Fref%2Fmodels%2Fquerysets%2F%23django.db.models.Avg=D=1=AFQjCNHy9ETv9fmPLefytqt0O6V-yhjXgw> > > Le samedi 2 avril 2016 13:08:20 UTC-4, Tazo Gil a écrit : >> >> Hello, >> >> The following request works in my dev django project (sqlite) by not in >> pro

Re: Request works with sqlite not with Postgres

2016-04-02 Thread Tazo Gil
I forgot to precise the type of the field Chrono.temps: temps = models.DurationField(null=True) Le samedi 2 avril 2016 19:08:20 UTC+2, Tazo Gil a écrit : > > Hello, > > The following request works in my dev django project (sqlite) by not in > production with po

Request works with sqlite not with Postgres

2016-04-02 Thread Tazo Gil
Hello, The following request works in my dev django project (sqlite) by not in production with postgres out: >>> Questionnaire.objects.filter(site_id=1).annotate(moyenne=Avg('chrono__temps')).values('title','moyenne') The errors : out: Traceback (most recent call last): out: File "",

Re: pip install django

2015-12-24 Thread Gil
Same problem from EU. On Thursday, December 24, 2015 at 3:10:15 PM UTC+1, john...@gmail.com wrote: > > Is failing from several machines this morning. > > >pip install django --upgrade > Collecting django > Could not find a version that satisfies the requirement django (from > versions: ) > No

Loading sqlite function failed with runserver but works in django shell

2015-08-13 Thread Tazo Gil
Dear all django 1.8 python 3.4 The sqlite function sqlite-Levenshtein (https://github.com/mateusza/SQLite-Levenshtein) is working perfectly in the django shell, example: self.annotate(distance=Func(Value(aword), F('word'), function='levenshtein'

Re: Timeout error when reading headers from daemon process

2015-07-28 Thread Yoanis Gil
Hi Shyam, Kinda of difficult to help you out without letting people know what Django version you're using and a traceback of your error ;) On Tuesday, July 28, 2015 at 5:09:29 PM UTC-4, Shyam Satyaprasad wrote: > > Hello, > > I get the Timeout error when in my error logs. What is the reason

Client side timestamp handling and timezone

2014-03-18 Thread Yoanis Gil Delgado
Hello there, I've been struggling with this issue for the last few days and I cannot seem to find the way to fix it. I've this web page with a form where a user is requested to enter a date and a time of the day. Then there is a search button which does a JSON post back to the server with

Re: Admin Site appending letter "s" to end of each model\table name

2011-09-10 Thread Gil
I'm a newbie to object-oriented programming too, so I suppose my mindset is still in procedural, SQL and "recordset" modes, and otherwise: my old ways :-) Thanks for that additional info. Good Points. From: Shawn Milochik To: django-users@googlegroups.com Sent: Saturday,

Re: Get Users' Groups

2009-06-29 Thread Gil Sousa
Thanks :) And where can I see the whole Group Documentation? All the fields we have available (and their names), etc... On 25 Jun, 18:02, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Jun 25, 2:45 pm, Gil Sousa <gilso...@gmail.com> wrote: > > > Hi! > > >

Get Users' Groups

2009-06-25 Thread Gil Sousa
Hi! I searched on documentation but I didn't see anything related with managing users' groups, I want to do something like a "staff page" and for that I need to get a list of groups, I need to get the NAME of each group and I need to get the list of members of each group. How can I do this? I

Re: changing models vs update DB

2009-05-06 Thread Gil Sousa
Thanks, I'll try the django-evolution :) On 6 Maio, 16:44, Daniel Roseman <roseman.dan...@googlemail.com> wrote: > On May 6, 3:03 pm, Gil Sousa <gilso...@gmail.com> wrote: > > > Hi! > > > I already read that django doesn't do an update to the DB (tables >

changing models vs update DB

2009-05-06 Thread Gil Sousa
Hi! I already read that django doesn't do an update to the DB (tables structure) when we do the syncdb command, just create new tables if necessary..., but how do I know which tables were created and which ones should I do the manual update? Now I am only using my local server, but I am concern

Re: Auth permitions in templates

2009-04-15 Thread Gil Sousa
Thanks a lot :) It works now :) On 15 Abr, 13:58, Daniel Roseman <roseman.dan...@googlemail.com> wrote: > On Apr 15, 11:56 am, Gil Sousa <gilso...@gmail.com> wrote: > > > I am new with django, sorry about this kind of questions. > > > I don't kno

Re: Auth permitions in templates

2009-04-15 Thread Gil Sousa
I am new with django, sorry about this kind of questions. I don't know how to pass the 'user' variable into the template, how can I do that? Thanks for your help! On 15 Abr, 11:39, Daniel Roseman <roseman.dan...@googlemail.com> wrote: > On Apr 15, 9:32 am, Gil Sousa <gilso...@gmai

Auth permitions in templates

2009-04-15 Thread Gil Sousa
Hi! I have one menu that I use as a "base" template, this menu has some entries which some of them should be restricted to logged users, but even when I loggin I cannot see those entries. This is my menu.html: http://www.w3.org/1999/xhtml;> {% block title %}{% endblock %}

Re: Using Static Files

2009-03-18 Thread Gil Sousa
I already found my mistake :) I had this: urlpatterns = patterns('lafora.forum.views', # Uncomment the admin/doc line below and add 'django.contrib.admindocs' # to INSTALLED_APPS to enable admin documentation: # (r'^admin/doc/', include('django.contrib.admindocs.urls')), #

Using Static Files

2009-03-18 Thread Gil Sousa
Hi! First of all, I already saw (and tried) this: http://docs.djangoproject.com/en/dev/howto/static-files/ I want to use static files on development mode, but this is starting to driving me mad, I am googling for almost 2 days and I didn't solve my problem yet. How can I use static files on