Re: Student Club Management Web App: Seeking Collaboration and Advice from Experts

2024-03-12 Thread Alex Goyzueta
Interesado El lun., 11 mar. 2024 14:44, Bayodele Oguntomiloye < oguntomiloyebayod...@gmail.com> escribió: > I'm interested. Add me with this WhatsApp number 09129350024 > > On Sun, Mar 10, 2024 at 11:16 PM Galuh Akbar Putra > wrote: > >> Contact me >> 0881025905276 >> >> Pada Sab, 2 Mar 2024 22

Finding the last modified timestamp for a group of Models

2024-02-27 Thread Alex Guetsche
I have an application which contains more than one Model, all descended from an abstract one. All the operational Models have created and modified fields with datetime timestamps. [How] can I get the Django ORM to bring me the last modified timestamp that will be the maximum of all createds and

Re: How to create an individual instagram message into threads?

2023-11-17 Thread Alex Shibly
While I don't have specific knowledge about implementations in Instagram clones in Django applications, I can provide you with guidance on how you might approach implementing the features you described. Implementing a messaging system with thread-like conversations can be achieved by creating

Django Channels with Queue (Lobby) Manager

2023-07-11 Thread Alex R
Hello dear Community! I need help with Django channels and Websockets (i guess) for an application I am building. The project is online Chess game with Django as a backend and vanilla JavaScript (ajax, jQuey and some bootstrap). We are using custom chess engine written in python. Previously

Re: TypeError at /register User() got unexpected keyword arguments: 'name1', 'name2', 'country'

2023-03-30 Thread Alex Sonar
Hi Ebenezer, Could I ask you to show the content of the model file, please? On Thursday, March 30, 2023 at 5:21:06 AM UTC+3 Ebenezer Otchere wrote: > I am trying to collect user information and save in my database but i keep > getting this error > and i dont know the way around it so help me the

The problem of versioning a large project.

2023-03-29 Thread Alex Sonar
The problem of versioning a large project. Hi guys, I really got stuck with the challenge, with the design of versioning for a large project. Now we have organized versioning, where our project is divided into separate GIT repositories which are created for each application. The new necessit

Re: Dear participants of Django Users Group, could you take part in our survey, please?

2023-01-24 Thread Alex Sonar
Hey folks When rushing with adding new features it is easy to forget something or loose the big picture. Why not just ask what are the common issues that Django developers have faced? Like most of the solutions we are searching for. Like: tons of filtering issues, queries and sub-queries, advanc

Re: How to access the value of a field that failed validation

2023-01-02 Thread Alex Sonar
Hi Noel! Have you looked at the problem in context CSRF Protection? Please check it out - How to use Django’s CSRF protection https://docs.djangoproject.com/en/4.1/howto/csrf/ It might be as a solution... On Monday, January 2, 2023 at 3:27:01 AM UTC+3 Noel Duffy wrote: > I'm new to Dj

Re:

2022-09-27 Thread Alex Murithi
My no is +254713315968 On Tue, Sep 27, 2022, 12:08 Abdul Madebari wrote: > I am available too +255622166483 > > On Tue, 27 Sep 2022, 11:46 Shittu Abdulrasheed, < > rasheedshittushi...@gmail.com> wrote: > >> i am available too +2347049978495 >> >> On Tue, Sep 27, 2022 at 3:21 AM André Lewis >> w

Class based views with forms

2022-04-26 Thread alex smolyakov
Can anyone explain me how to make send email form on page. So my forms.py class ContactForm(forms.Form): name = forms.CharField(required=True) last_name = forms.CharField() adults = forms.IntegerField() children = forms.IntegerField() email = forms.EmailField(required=True) m

Re: web page blank

2022-02-04 Thread Alex Dénho
Thanks Le mer. 2 févr. 2022 à 13:37, kka kar a écrit : > I recreated the project and changed the view function to the below, and it > now works fine for me: > > def home(request): > context = { > 'posts': post > } > return render(request, 'home.html', context) > > On Wednesday, February 2, 2022

Declarative mechanism for Django model rows

2021-12-08 Thread Alex Dehnert
approaches is better presumably depends on how much ORM functionality I actually want and how often I expect to be changing things. Are there other good approaches for this? Am I missing some Django feature (or add-on) that makes this easier? Thanks, Alex P.S. I previously asked this on StackOv

Re: Has anyone connected Django with AWS cognito in multi-tenant environment?

2021-11-03 Thread Alex Fernandes
Heey Mike, I was wondering if you found a solution to this? Cheers, Alex Op vrijdag 1 februari 2019 om 04:21:43 UTC+1 schreef mike hennessy: > I'm new to Django, but not new to web development. I'm picking up > Django/Python and I'm interested in setting up a SaaS multi-

Re: HELP me: "a beginner's questions"

2021-08-18 Thread Alex B
Happy to help more if you'd like, hit me up here or directly. Alex B On Wed, Aug 18, 2021, 7:02 AM wrote: > Hi > > I am now starting to work in Django. > > I built a development environment on my laptop. I experimented there, > things work. > > I have a web serve

RE: Help me with the view please

2020-09-23 Thread fadhil alex
I cant seem to put together this template for adding fee, for roll#, tuition fee and remaining fee, I have managed only to create the form, can you help me with thatSent from Mail for Windows 10 From: coolguySent: Tuesday, September 22, 2020 6:10 PMTo: Django usersSubject: Re: Help me with the view

RE: Help me with the view please

2020-09-22 Thread fadhil alex
Thanks for your previous tips, and I have already created the get_absolute_url for my DetailView and It is working just finedef get_absolute_url(self):return reverse("student_detail", kwargs={"pk": self.pk})I think now I can learn from you how use views to generate my output Sent from M

RE: Help me with the view please

2020-09-21 Thread fadhil alex
Hi @coolguy, thanks for your attachments,  have created all the views and templates, and I have been working on them for my new web app, for this new models will it be easy for more implement or auto check paid all checkbox all payments have been completed, please, how? Sent from Mail for Windows 1

RE: Help me with the view please

2020-09-16 Thread fadhil alex
Since model design is where I very much struggle, and I think  my fee management system models are not well design, so I need your help in redesigning my models please Sent from Mail for Windows 10 From: coolguySent: Wednesday, September 16, 2020 5:31 PMTo: Django usersSubject: Re: Help me with the

RE: Help me with the view please

2020-09-15 Thread fadhil alex
Thanks for your valuable information, it seems my models are not well constructed, I will first work on them.Don’t you have a YouTube channel or website or paid course somewhere like Udemy where I can learn more Sent from Mail for Windows 10 From: coolguySent: Tuesday, September 15, 2020 10:57 PMTo

RE: Help me with the view please

2020-09-14 Thread fadhil alex
def save(self, *args, **kwargs):self.paid_fees = student.fee_set.aggregate(total_paid_fees=sum('paid_fees'))self.school_fees = first_record.school_feesself.remaining_fees = self.school_fees - self.paid_feesif self.remaining_fees == 0:self.completed = 

RE: Help me with the view please

2020-09-14 Thread fadhil alex
Thanks it has worked, but it doesn’t work with my total_paid_fees, I want to be automatically checked when school_fees substracts summation of all paid_fees, just like this solution you provided me with the last timefirst_record = student.fee_set.first() school_fees = first_record.school_fees  paid

RE: Help me with the view please

2020-09-11 Thread fadhil alex
Sorry for bothering you @coolguy, you’re the only person who seems to be nice to a Django beginner developer like me, and I would like to bother you one more timeYour solution for using methods in models is perfectly fineYou see I want school_fees to be a fixed amount, example $300So when a student

RE: Help me with the view please

2020-09-08 Thread fadhil alex
Thank you for your help @coolguy..but my real problem lies in writing the code for “fee_remaining”, can you help me with that also..thanks Sent from Mail for Windows 10 From: coolguySent: Tuesday, September 8, 2020 7:45 PMTo: Django usersSubject: Re: Help me with the view please In your return line

Using subprocess in Django to run Java (HelloWorld) file

2020-08-03 Thread Alex Wan
Was looking at this link https://www.geeksforgeeks.org/python-subprocess-module-to-execute-programs-written-in-different-languages/ and am trying to translate it into Django. Upon form submission from index.html in templates, I want to call the view function to run HelloWorld.java (in same dir

Re: select_related() and RawQuerySet

2020-04-27 Thread Alex Scott
This is an insanely old thread, but I couldn't find any updates so was curious if anyone had advice on implementing select_related with a RawQuerySet? It seems prefetch_related() works just fine. On Friday, March 2, 2012 at 11:22:52 AM UTC-8, akaariai wrote: > > On Friday, March 2, 2012 7:24:00

Re: CSRF token still needed today?

2020-04-19 Thread Alex Heyden
Django supports samesite on session cookies now, and it's on (set to lax) by default. Whether or not that completely covers your surface risk to CSRF attacks is a somewhat different question. On Sun, Apr 19, 2020 at 3:12 PM guettli wrote: > iI look at this page: https://docs.djangoproject.com/en

Re: Make a Django query filter at runtime

2020-01-08 Thread Alex Conselvan de Oliveira
Hi Ezequias, You could use a dict: data = { 'name': 'John', 'age': 42, } model.filter(**data) Best Regards! Em qua., 8 de jan. de 2020 às 18:09, Ezequias Rocha < ezequias.ro...@gmail.com> escreveu: > Hi everyone > > I am in a doubt about creating django filters dynamically. > > All you kn

Re: Using Unaccent in Model database function

2020-01-05 Thread Alex Scott
/#unaccent On Sunday, January 5, 2020 at 11:12:45 AM UTC-8, Alex Scott wrote: > > Hi all, > > I just started using the Unaccent extension for Postgres and implementing > queryset filters with it like: > > q = 'hello' > queryset.filter(name__unaccent__istartswith=q)

Using Unaccent in Model database function

2020-01-05 Thread Alex Scott
no effect, does the same as the above. or queryset.annotate(search_index=StrIndex(Lower(Unaccent('name')), Value(q))) --> There doesn't seem to be an Unaccent function Is there a way to do this currently? Thanks, Alex -- You received this message because you are subscribed to

Re: [Django] How to retrieve the saved password in raw format

2019-10-21 Thread Alex Heyden
Password tables should never be human-readable. Never ever. No exceptions. If the intent is to power automation, store that password where the test agent can read it. If you don't know the password, reset it, then save it. Don't expect your web server to leak a password, though. Not even if you as

Re: Postgre sql problem

2019-09-10 Thread acema alex
Try to follow these steps; - Install PostgreSQL, -install psycopg2 binary version , -create the database in the PostgreSQL, - then go to your settings.py of your project and do these on the database setting DATABASES = { 'defaults': { 'ENGINE': 'Django.db.backends.postgre

Django Admin autocomplete with diacritic support (transliteration / accent support)

2019-07-15 Thread Alex Scott
slated into ASCII counterparts by default. They give a nice example there. But that doesn't seem to be the case in the Django admin. I type in "bene" and it doesn't match bénédictine. Any help to fix this would be appreciated! Thanks, Alex -- You received this message bec

Re: Import circular

2019-06-07 Thread &#x27;Alex Mesias Diaz Toro' via Django users
do por > Mailtrack > <https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&;> > 06/06/19, > 06:28:46 PM > > On Thu, Jun 6, 2019 at 5:25 PM 'Alex Mesias Diaz Toro' via Django users < > django-users@googlegroups.com>

Re: Import circular

2019-06-06 Thread &#x27;Alex Mesias Diaz Toro' via Django users
Hi Fabio, Did you solve this problem? Ty El jue., 6 jun. 2019 a las 12:12, Fabio O da silva () escribió: > urls.py > > > > [image: Mailtrack] > > Remetente > notificado por > Mailtrack >

Watch "Django on pythonanywhere." on YouTube

2019-06-06 Thread Alex Kimeu
https://youtu.be/3B2yALSpqFg -- 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 group, send email to djan

Re: python manage.py makemirations

2019-05-29 Thread Alex Kimeu
You have to add your app in the settings.py file then migrate. On Wed, 29 May 2019, 21:22 Robert Wahoo, wrote: > Regardless, it’s not an issue. Just migrate > > > > > > *From: *"django-users@googlegroups.com" > on behalf of sagar ninave > *Reply-To: *"django-users@googlegroups.com" > > *Date

Re: python manage.py makemirations

2019-05-29 Thread Alex Kimeu
That's ok. There's no any problem. Just go ahead and migrate. On Wed, 29 May 2019, 21:18 Robert Wahoo, wrote: > Did you make model changes? > > > > *From: *"django-users@googlegroups.com" > on behalf of sagar ninave > *Reply-To: *"django-users@googlegroups.com" > > *Date: *Wednesday, May 29,

Re: Rails to Django Application Architecture Question

2019-05-24 Thread Alex Heyden
What you're describing is how you'd lay out the models in an app. It sounds like you may have one Django app. If I were writing this in Django, I might try to spin the workflow and task logic off into its own application if I thought that the core ideas of users and projects might feed some other b

Re: Django Model Forms.

2019-05-17 Thread Alex Kimeu
Thanks. Makes sense. Let me try it. Thanks. On Fri, 17 May 2019, 14:18 Joe Reitman, wrote: > In your template you can identify each field by its name and use a table > to render them in columns. e.g. > > table > table row > table data {{ form.username }} > table data {{ form.password }

Re: Info

2019-05-06 Thread Alex Heyden
When a message goes out to here, it's sent to everyone on the group. When you reply to it, it also goes out to the group. What you're seeing is someone's auto-reply. I couldn't say for sure if it's a malicious attempt to passively get some money or if it's someone not realizing his personal spam fi

Re: Website slowed down drasticaly

2019-05-03 Thread Alex Heyden
Definitely echoing Scott's sentiment here. Start with what changed. In my personal experience, if the answer is "nothing," you can narrow it down very quickly. Start by reloading with the browser network monitor in the foreground. If the first response comes back very quickly, Django itself is off

Re: In the browser it looks ugly, why?

2019-04-06 Thread Alex Heyden
Short answer, it's giving you exactly what you asked for: the query set inside tags. What you probably want is to loop through the ingredients and place them inside tags. Something like: {% for ingredient in object.ingredientes.all %} {{ ingredient.cantidad }} {{ ingredient.nombre }} {% endfor %

Re: google chrome extension

2019-04-03 Thread Alex Chiaranda
thought, because you would have to distribute a python interpreter with you extension, the extension size would be huge. However, if your extension is meant to communicate with a server side application, this part can be whatever you want, providing a REST API for your extension. Hope it helps !

Re: Connection Reset by Peer

2019-03-11 Thread Alex Snyder
d returned to client. > > > > > ma 11. maalisk. 2019 klo 17.58 Alex Snyder > kirjoitti: > >> Hello, >> I'm working on a webhook receiver and all was working fine the other day. >> Now I'm receiving connection reset by peer errors. The data being pos

Connection Reset by Peer

2019-03-11 Thread Alex Snyder
Hello, I'm working on a webhook receiver and all was working fine the other day. Now I'm receiving connection reset by peer errors. The data being posted is getting received so and I can't figure out why it all of a sudden started giving errors. Could it be that connections are coming in too qu

Re: ModuleNotFoundError: No module named 'sample,'

2019-03-07 Thread Alex Kimeu
Do you have a model named Sample in your models.py file of your app?? On Thu, 7 Mar 2019, 13:00 Robin Riis, wrote: > from .models import Sample > > Den tors 7 mars 2019 10:44 skrev: > >> Hi Team >> >> My project name is Sample >> While I am trying to connect database with models.py >> I am find

Re:

2019-02-23 Thread Alex Kimeu
I think the issue is in your models.py . Kindly share your polls models. On Fri, 22 Feb 2019, 16:18 Vivek Bhavsar, wrote: > You should put the dot(period) after the polls > For eg:. python manage.py makemigrations polls . > > NOTE: There is space between polls and dot(period) > > > Thanks > > On

Re: TemplateDoesNotExist at /vmail/inbox/

2019-02-04 Thread Alex Kimeu
It means the template you are trying to render is either not created or not in the location where Django expects to be. Django does not see the template you are trying to render. On Tue, 5 Feb 2019, 04:28 senthu nithy I am doing a project using Django. I got this error. I don't understand > what

Re: AES Encryption

2019-01-19 Thread Alex Heyden
PyCrypto would be the Python-side library if you wanted to handle this in application code, but personally, I'd prefer to handle it in my database of choice. A lot of us use Postgres, and there's a django-pgcrypto library for that. That being said, reversible ciphers are hard to do meaningfully. Y

Re:

2019-01-19 Thread Alex Heyden
You missed the +unsubscribe in the email name to accomplish that. From the footer: 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...@googl

Re: User profile

2019-01-17 Thread Alex Kimeu
First you need to create a model for the User Profile. On Thu, 17 Jan 2019, 17:49 ANi Do you mean you want to create your custom user model? > Two ways to do it, > 1. create a profile model and use foreign key to the user model that > Django provided. > 2. create a custom user model like this > h

Re: Log into existing Django site

2019-01-16 Thread Alex Heyden
On Tuesday, January 15, 2019 at 7:59:24 PM UTC-7, Alex Heyden wrote: >> >> The server that is hosting the site. The one you're trying to FTP onto. >> Your quality of life will be greatly improved if you can SSH onto the >> machine rather than using FTP, because the a

Re: Log into existing Django site

2019-01-15 Thread Alex Heyden
the server to make changes. > > On Tuesday, January 15, 2019 at 2:30:44 PM UTC-7, Alex Heyden wrote: >> >> Assuming you're familiar with web technologies in general, you'd make >> these changes on the host machine itself, ideally through the same >> mechan

Re: Log into existing Django site

2019-01-15 Thread Alex Heyden
Assuming you're familiar with web technologies in general, you'd make these changes on the host machine itself, ideally through the same mechanism that handles deployments of source code. Code for application logic is often in files called "views.py" or similar, and the HTML will be in a folder cal

Re: Django UserForm Help Texts

2019-01-14 Thread Alex Kimeu
return redirect('quiz:quiz-index') else: form = UserRegisterForm() return render(request, 'users/register.html', {'form': form}) On Mon, Jan 14, 2019 at 11:39 PM Alex Kimeu wrote: > *views.py* > > > On Mon, Jan 14, 2019 at 11:36 PM Ne

Re: working fine with sqllite but not showing result in mysql

2019-01-14 Thread Alex Kimeu
publish__day=day) > > return render(request, > 'blog/post/details.html', > {'post': post}) > > class PostListView(ListView): > queryset = Post.published.all() > context_object_name = 'posts'

Re: working fine with sqllite but not showing result in mysql

2019-01-14 Thread Alex Kimeu
Have you configured MySQL correctly? On Mon, Jan 14, 2019 at 9:07 PM tribhuvan kishor < tribhuvankishor...@gmail.com> wrote: > this view is retrieving data with SQlite but not fetching data in > MySQL saying no data found. > > > def post_detail(request, year, month, day, post): > post = get_o

Re: Best way to run a shell script, using input value from Django?

2019-01-02 Thread Alex Heyden
So, a lot of this doesn't have much to do with Django, but I'm not sure how familiar you are with web server best practices in general, so apologies if some of this is remedial for you. If something takes two minutes to finish, you don't want it being handled on the request handler itself. Split t

Re:

2019-01-02 Thread Alex Kimeu
Is your server running? On Wed, Jan 2, 2019 at 6:30 PM Joseph Gichuki wrote: > > > Here it is > > Sent from Mail for > Windows 10 > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsub

Re: Django on IIS

2018-12-17 Thread Alex Heyden
I have recently, and it was equal parts misery and pain. FastCGI via wfastcgi, as outlined at http://blog.mattwoodward.com/2016/07/running-django-application-on-windows.html I also had to downgrade from Python 3.7 to Python 3.6 I wouldn't really consider myself an expert on the subject. All I can

Re: Why does my Django project open the same home page irrespective or which url I type?

2018-11-13 Thread Alex Callaway
Thanks! On Monday, November 12, 2018 at 7:06:37 PM UTC-8, Jason wrote: > > you have an ending slash on your login urls, and no ending slash in your > links defined. try adding a trailing slash > -- You received this message because you are subscribed to the Google Groups "Django users" group.

Why does my Django project open the same home page irrespective or which url I type?

2018-11-12 Thread Alex Callaway
In my urlpatterns in the url.py file of my app, I have two pages: from django.urls import path, re_path from django.conf.urls import url from . import views from django.contrib.auth.views import LoginView urlpatterns=[ re_path(r'^$',views.home, name='home'), path('login/', LoginView.as_view(templ

Re: TypeError at /users/login/ login() got an unexpected keyword argument 'template_name'

2018-11-12 Thread Alex Callaway
> > path('login/', auth_views.LoginView.as_view(), name='login'), How does it re-direct to which page to open in above method? How does it open the template the user wanted here? He is trying to open the page 'users/login.html' when users type: http://127.0.0.1/login/ on the browser. I have

Re: TypeError at /users/login/ login() got an unexpected keyword argument 'template_name'

2018-08-27 Thread Alex Kimeu
*#Import auth views* from django.contrib.auth import views as auth_views *#Use the views in the url* path('login/', auth_views.LoginView.as_view(), name='login'), Happy coding! On Mon, Aug 27, 2018 at 6:29 PM Tim Vogt (Tim Vogt) wrote: > Hi Jason, > Thank ! > > my urls.py in /users looks li

Re: How to create dynamic form field? Django 2.0

2018-07-20 Thread alex eckert
There is no simple solution to this problem. I'm going to try and break this explanation down into simpler parts for you, but please remember this is pretty hard stuff if you're not familiar with Django. I would second @Melvyn's advice, but if you really need to get this done you need to be pat

Re: how to add radiobuttons to my ModelForm

2018-06-25 Thread alex eckert
Can you include your template code? The issue could be in there. On Sunday, June 24, 2018 at 10:15:50 AM UTC-5, Saloni Kalra wrote: > > I wish to add radio buttons fill in each parameter of my model and also to > convert it to integer on the backend. But somehow its not changing. Kindly > help.

Re: Django multiple Model Forms in template

2018-06-23 Thread alex eckert
This is likely not the answer you're looking for, but my two cents... I've never been successful in writing the templates for formsets on my own, as they tend to end up looking rather clunky. I've been using this

Re: Message from a django beginner user

2018-05-20 Thread Alex Stelmakh
Hi, Francis. Did you try mozilla developer network ? I consider this for my further learning. вторник, 15 мая 2018 г., 23:01:59 UTC+3 пользователь Francis F. Massaquoi, Jr. написал: > > Hi, I'm Francis F. Massaquoi, Jr. with great interest in learning django > 2.0, which is the latest version,

django.forms -- unable to display default values in form fields for edit form

2018-04-25 Thread Alex Volkov
Hello everyone, I'm having some problem with django.forms edit dialog and I believe it might be a bug in django that's causing this. I created a project with Django 2.0.4 running on Python 3.6.5 with cookiecutter django template. I created an app (survey) then created a form using a model with

Re: Django 1.11 and Python 3 SQLite Migration "table already exists"

2018-04-03 Thread Alex Laird
Finally found the solution. I have marked it as the answer on my Stackoverflow question here: https://stackoverflow.com/a/49641729/1128413 On Tuesday, April 3, 2018 at 2:52:55 PM UTC-7, Alex Laird wrote: > > I've recently started receiving an error that I'm having trouble >

Django 1.11 and Python 3 SQLite Migration "table already exists"

2018-04-03 Thread Alex Laird
I've recently started receiving an error that I'm having trouble identifying with a Django 1.11 project using SQLite in development. The project linked below was/is previously Python 2/3 compatible, though I primarily ran it using Python 2. Recently, I switched over most of my computers and pro

Re: How to run an external command that must run with the server

2018-04-03 Thread &#x27;Alex' via Django users
isor makes > sense to me. If the latter, then I'd probably be looking at doing something > different. > > > Ken > > > On April 3, 2018 at 6:15 AM 'Alex' via Django users < > django...@googlegroups.com > wrote: > > That makes sense. So leave the

Re: How to run an external command that must run with the server

2018-04-03 Thread &#x27;Alex' via Django users
for us and doesn't give us any problems. > > Ken > > On 4/1/2018 7:06 AM, 'Alex' via Django users wrote: > > I have a daphne server running a django channels application. I also have > a python script that aggregates data from various sources, and sticks it

How to run an external command that must run with the server

2018-04-01 Thread &#x27;Alex' via Django users
I have a daphne server running a django channels application. I also have a python script that aggregates data from various sources, and sticks it into the channel layer (called source.py). At the moment, I run it as a management command (python manage.py source). It is nearly time for deployme

Re: Overriding channel-layer's group_send and group_add to add persistence

2018-04-01 Thread &#x27;Alex' via Django users
Friday, 23 March 2018 09:56:13 UTC, Alex wrote: > > I've been trying to add persistence to channel layers, such that each new > consumer joining a group is sent the most recent message from that group, > on connect. Below are my attempts. For some reason, the message in the > hig

Re: Overriding channel-layer's group_send and group_add to add persistence

2018-03-23 Thread &#x27;Alex' via Django users
? But past that, I can't help you - I'd try doing some things with > plain aioredis to see if you can replicate it there. > > Andrew > > On Fri, Mar 23, 2018 at 9:01 AM, 'Alex' via Django users < > django...@googlegroups.com > wrote: > >> Hi, &g

Re: Overriding channel-layer's group_send and group_add to add persistence

2018-03-23 Thread &#x27;Alex' via Django users
2018 16:05:16 UTC, Andrew Godwin wrote: > > I would check the connection is going to the right server/database as > well? But past that, I can't help you - I'd try doing some things with > plain aioredis to see if you can replicate it there. > > Andrew > > On Fri

Re: Overriding channel-layer's group_send and group_add to add persistence

2018-03-23 Thread &#x27;Alex' via Django users
Hi, I've used the redis-cli to get the contents of the key, and it has filled it properly, so the information is definitely in redis under that key. The issue seems to be that message = await connection.get(pers_key) always returns none. One thing I'm certain of is that it's

Overriding channel-layer's group_send and group_add to add persistence

2018-03-23 Thread &#x27;Alex' via Django users
I've been trying to add persistence to channel layers, such that each new consumer joining a group is sent the most recent message from that group, on connect. Below are my attempts. For some reason, the message in the highlighted line always seems to be of type 'None'. Am I going about this co

Listening to a django channel from outside a consumer

2018-03-12 Thread Alex
Hi, The docs explain that it is possible to publish to the channel layer from outside of a consumer: https://channels.readthedocs.io/en/latest/topics/channel_layers.html#using-outside-of-consumers I need to do the opposite. I have a fairly complex python script that reads live data from pu

Re: Failing to configure Django correctlly (conflict in settings between models.py and manage.py usage).

2018-01-05 Thread alex Tarasiuk
The only thing I need from Django (at this point) is to have the ability to communicate with my DB. (person = models.Person.objects.filter(phone_number= phone_number) from my previous example) I'm planning to use the admin page and I might add a GUI in some point. Regards, Alex On F

Re: Failing to configure Django correctlly (conflict in settings between models.py and manage.py usage).

2018-01-05 Thread alex Tarasiuk
ed > out) and should definitely not be required. Have you set the > DEFAULT_INDEX_TABLESPACE > setting anywhere? Because that is also something that shouldn't be > required.... > > Med vänliga hälsningar, > > Andréas > > 2018-01-05 15:17 GMT+01:00 alex Tara

Re: Failing to configure Django correctlly (conflict in settings between models.py and manage.py usage).

2018-01-05 Thread alex Tarasiuk
onment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings. This is why I've added those settings in the first place. On Friday, January 5, 2018 at 3:59:31 PM UTC+2, Andréas Kühne wrote: > > Hi Alex, > > You shouldn't have anything regarding

Failing to configure Django correctlly (conflict in settings between models.py and manage.py usage).

2018-01-05 Thread alex Tarasiuk
while importing models: from MY_DJANGO.my_django import models (in some file) yields: ImportError: No module named my_django Also tried to add ''my_django.apps.MyDjangoConfig' to INSTALLED_APPS, and it didn't helped. What am I doing wrong?? Thanks in advance, Alex.

Re: What's the simple way to implement a chat system in Django?

2017-10-05 Thread Alex Chiaranda
is use Firebase for the chat part an option ? On Monday, October 2, 2017 at 12:39:48 PM UTC-3, Kishore Srinivas wrote: > > I want to make a chat system in Django, but all those channel stuffs looks > difficult , so are there any other simpler way to implement a chat system, > thanks > -- You

{% csrf_token %}

2017-09-26 Thread Alex Kleider
I'm using test driven development (going through Harry J.W. Percival's book) and have found that the following code fails because the template tag ( {% csrf_token %} ) is rendered by the home_page view function but not by the django.template.loader.render_to_string function (and so the assertEq

Django Channels compatibility with Google App/Compute Engine?

2017-07-07 Thread Alex Z
Hello! I'm really new here, and also relatively new to Django, and I've been researching different ways to incorporate real-time updates with Django without specifically using AJAX. I dug around and found out about Django Channels, and I'm learning the basics right now. What I'm trying to do is

Google analytics and request.resolver_match.url_name

2017-07-07 Thread Alex Riina
I'm getting familiar with google analytics and stumbled upon https://developers.google.com/analytics/devguides/collection/analyticsjs/pages#modifying_page_urls in which the google docs recommend regexing out some unique ids. In django, it's a lot simpler to get something like /user/account/ fr

Catching errors inside transaction.atomic()

2017-06-13 Thread Alex Krupp
The Django documentation gives a warning to avoid catching errors inside transaction.atomic() blocks, and to use nested transactions if you need to do so. But in the case where we have code lik

Re: Should I store offline calculation results in the cache?

2017-05-27 Thread Alex Heyden
Seven years ago, that may very well have been a true statement. I wouldn't stand by it today. Disk caching should be perfectly stable, even if it's a pretty poor solution for the average use case. The part that hasn't changed is memcached. Memcached should be everyone's default caching solution, n

Re: Django Channels, Nginx, Daphne - Not working?

2017-05-04 Thread Alex Elson
I was able to get it working with the development server, python manage.py runserver, with an addition to the firewall on Google Cloud. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails fro

Re: Django Channels, Nginx, Daphne - Not working?

2017-05-03 Thread Alex Elson
Here is my nginx default configuration if that could be it. server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; charset utf-8; index index.html index.htm index.nginx-debian.html; server_name _; location /

Re: Django Channels, Nginx, Daphne - Not working?

2017-05-03 Thread Alex Elson
I am trying to only use Daphne for websockets I believe, following the deployment tutorial in the Channel documentation. And yes I am running both processes on the same machine. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Re: Django Channels, Nginx, Daphne - Not working?

2017-05-02 Thread Alex Elson
I have "socket = new Websocket("ws:// ...", "socket.onopen," and "socket.send" commands in my Javascript code, and although the Javascript works, it seems to not be able to run these commands, or it is unable to access my functions in consumer.py, althought it works flawlessly if I run my proj

Re: Django Channels, Nginx, Daphne - Not working?

2017-05-02 Thread Alex Elson
Andrew, it doesn't seem to have fixed my problem. I type the following command, and am able to connect to my public ip, and although my page loads, only the frontend does anything. Channels does not work. $ daphne -b 0.0.0.0 firstproject.asgi:channel_layer 2017-05-03 06:11:51,196 INFO Starti

Django Channels, Nginx, Daphne - Not working?

2017-05-02 Thread Alex Elson
I am using Google Cloud to host my Django project, and I'm trying to run it with Nginx. I open two instances of the terminal, one with the command "python manage.py runworker" and the other with "daphne firstproject.asgi:channel_layer". I am able to connect to my public ip, and the page loads t

Re: GeoDjango

2017-03-26 Thread Alex Mandel
I'll add that you could also use Geonode http://geonode.org/ which is a Django front-end to a Geoserver instance. I've also run Tilestache directly on GeoDjango tables stored in Postgis to generate TMS style services. Enjoy, Alex PS: GeoDjango has it's own mailing list. On 03/2

Privacy settings like Facebook in Django.

2017-02-22 Thread Alex Richards
I want to implement privacy settings on my extended UserProfile Model where the user can decide who can see his field (say email for now). The options looks something like this, *public* - any one can view his email *friends_of_friends* - only friends and friends of friends can view his email *f

How do I implement a Facebook like privacy settings for extended User?

2017-02-22 Thread Alex Richards
I have an extended UserProfile to which I want to add some privacy settings as in Facebook. the options for a single field (say email for now) should be, *public *- any one can view his email *friends_of_friends* - only friends and friends of friends can view his email *friends *- only his fr

Re: browser testing

2017-01-04 Thread Alex Heyden
Everyone who wants into that space compares themselves to Selenium, because Selenium is that good and has that much market share. It's obnoxious to use, excludes some less technical users, but behaves very predictably in skilled hands and has plenty of community support. If I needed to include les

  1   2   3   4   5   6   7   8   9   10   >